Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
xncbf committed Nov 15, 2023
1 parent be63340 commit c21070d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/openai_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def gen_answer(user_input) -> str | None:
],
timeout=30,
)
return json.loads(response["choices"][0]["message"]["content"])
return response["choices"][0]["message"]["content"]
except Exception:
return None

Expand Down

0 comments on commit c21070d

Please sign in to comment.