mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-01 00:18:18 +02:00
increasing OpenAi api key verification timeout (#587)
This commit is contained in:
parent
7c34744655
commit
764aab3e53
@ -37,7 +37,7 @@ def check_model_api_key_is_valid(model_api_key: str) -> bool:
|
||||
if not model_api_key:
|
||||
return False
|
||||
|
||||
llm = get_default_llm(api_key=model_api_key, timeout=5)
|
||||
llm = get_default_llm(api_key=model_api_key, timeout=10)
|
||||
|
||||
# try for up to 2 timeouts (e.g. 10 seconds in total)
|
||||
for _ in range(2):
|
||||
|
Loading…
x
Reference in New Issue
Block a user