Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
a48ffc52
Commit
a48ffc52
authored
Mar 01, 2025
by
Alec
Committed by
GitHub
Mar 01, 2025
Browse files
[fix] OpenAI API object: completion to text_completion (#318)
parent
5f14e467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/llm/src/protocols/openai/completions/aggregator.rs
lib/llm/src/protocols/openai/completions/aggregator.rs
+3
-3
No files found.
lib/llm/src/protocols/openai/completions/aggregator.rs
View file @
a48ffc52
...
@@ -141,7 +141,7 @@ impl DeltaAggregator {
...
@@ -141,7 +141,7 @@ impl DeltaAggregator {
created
:
aggregator
.created
,
created
:
aggregator
.created
,
usage
:
aggregator
.usage
,
usage
:
aggregator
.usage
,
model
:
aggregator
.model
,
model
:
aggregator
.model
,
object
:
"completion"
.to_string
(),
object
:
"
text_
completion"
.to_string
(),
system_fingerprint
:
aggregator
.system_fingerprint
,
system_fingerprint
:
aggregator
.system_fingerprint
,
choices
,
choices
,
})
})
...
@@ -201,7 +201,7 @@ mod tests {
...
@@ -201,7 +201,7 @@ mod tests {
finish_reason
,
finish_reason
,
logprobs
:
None
,
logprobs
:
None
,
}],
}],
object
:
"completion"
.to_string
(),
object
:
"
text_
completion"
.to_string
(),
}),
}),
id
:
Some
(
"test_id"
.to_string
()),
id
:
Some
(
"test_id"
.to_string
()),
event
:
None
,
event
:
None
,
...
@@ -310,7 +310,7 @@ mod tests {
...
@@ -310,7 +310,7 @@ mod tests {
logprobs
:
None
,
logprobs
:
None
,
},
},
],
],
object
:
"completion"
.to_string
(),
object
:
"
text_
completion"
.to_string
(),
}),
}),
id
:
Some
(
"test_id"
.to_string
()),
id
:
Some
(
"test_id"
.to_string
()),
event
:
None
,
event
:
None
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment