Skip to content

Commit

Permalink
When the request fails in async mode, we cannot write the response ei…
Browse files Browse the repository at this point in the history
…ther (completion id being None)
  • Loading branch information
nqn committed Jun 11, 2024
1 parent 7b56d11 commit 7a9ed7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion log10/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,11 @@ def wrapper(*args, **kwargs):
while result_queue.empty():
pass
result = result_queue.get()
completionID = result["completionID"]

if result is None:
return output

completionID = result.get("completionID")
last_completion_response_var.set(result)

with timed_block("result call duration (sync)"):
Expand Down

0 comments on commit 7a9ed7e

Please sign in to comment.