Skip to content

Commit

Permalink
fix(llm): set timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
booboosui committed May 2, 2024
1 parent c827f65 commit 7635681
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/app/pkgs/tools/llm_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def chatCompletion(self, context, fackData, bill):
model= LLM_MODEL,
messages=context,
max_tokens=10000,
temperature=0
temperature=0,
timeout=600
)

total_tokens = response.usage.total_tokens
Expand Down

0 comments on commit 7635681

Please sign in to comment.