🐛 fix stream_complete
This commit is contained in:
parent
c193cc9181
commit
d7e9901afd
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class OpenAI(LLM):
|
|||
stream=True,
|
||||
)
|
||||
async for chunk in resp:
|
||||
return chunk
|
||||
yield chunk.choices[0].delta.content
|
||||
|
||||
async def _stream_chat(
|
||||
self, messages: List[ChatMessage], options
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue