Skip to content

Commit

Permalink
fix: reduce timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
WEIFENG2333 committed Dec 7, 2024
1 parent 0dd5f3b commit a7818d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/utils/test_opanai.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_openai(base_url, api_key, model):
{"role": "user", "content": "Hello!"}
],
max_tokens=100,
timeout=15
timeout=10
)
# 返回AI的回复
return True, str(response.choices[0].message.content)
Expand Down

1 comment on commit a7818d6

@IgnorEnd
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我在使用本地ollama的时候,这个timeout=10,实在是太短了,本地大模型都没有加载好,就超时了。

Please sign in to comment.