align with CompletionResponseStreamChunk.delta as str (instead of TextDelta)

This commit is contained in:
Matthew Farrellee 2025-01-29 12:22:02 -05:00
parent 9f709387e2
commit d95477cdd4

View file

@ -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),
)