Skip to content

Commit

Permalink
Streaming AIApplication error with Azure OpenAI API #541 fixed, pre-c…
Browse files Browse the repository at this point in the history
…ommit executed
  • Loading branch information
thanseefpp committed Sep 8, 2023
1 parent 12606e3 commit f0f3521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/marvin/engine/language_models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def handle_streaming_response(
response["llm_response"] = r.to_dict_recursive()

delta = r.choices[0].delta if r.choices and r.choices[0] else None

if delta is None:
continue

Expand Down

0 comments on commit f0f3521

Please sign in to comment.