mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 10:42:39 +00:00
align with CompletionResponseStreamChunk.delta as str (instead of TextDelta)
This commit is contained in:
parent
9f709387e2
commit
d95477cdd4
1 changed files with 1 additions and 1 deletions
|
@ -632,7 +632,7 @@ async def convert_openai_completion_stream(
|
|||
async for chunk in stream:
|
||||
choice = chunk.choices[0]
|
||||
yield CompletionResponseStreamChunk(
|
||||
delta=TextDelta(text=choice.text),
|
||||
delta=choice.text,
|
||||
stop_reason=_convert_openai_finish_reason(choice.finish_reason),
|
||||
logprobs=_convert_openai_completion_logprobs(choice.logprobs),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue