🐛 fix stream_complete

This commit is contained in:
Nate Sesti 2023-12-01 14:15:39 -08:00
parent c193cc9181
commit d7e9901afd

View file

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