Reduce timeout to 60
This commit is contained in:
parent
133b59c2c6
commit
c5e09c47fe
1 changed files with 2 additions and 2 deletions
|
|
@ -429,7 +429,7 @@ async def _test_ollama_completion_with_tools(llm_model: str, endpoint: str) -> N
|
|||
response = await client.post(
|
||||
url,
|
||||
json=payload,
|
||||
timeout=120.0, # Increased timeout for Ollama when potentially busy
|
||||
timeout=60.0, # Increased timeout for Ollama when potentially busy
|
||||
)
|
||||
|
||||
if response.status_code != 200:
|
||||
|
|
@ -461,7 +461,7 @@ async def _test_ollama_embedding(embedding_model: str, endpoint: str) -> None:
|
|||
response = await client.post(
|
||||
url,
|
||||
json=payload,
|
||||
timeout=120.0, # Increased timeout for Ollama when potentially busy
|
||||
timeout=60.0, # Increased timeout for Ollama when potentially busy
|
||||
)
|
||||
|
||||
if response.status_code != 200:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue