forked from phoenix/litellm-mirror
fix(ollama.py): use litellm.request timeout for async call timeout
This commit is contained in:
parent
6ade2c74b5
commit
57607f111a
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ async def ollama_async_streaming(url, data, model_response, encoding, logging_ob
|
|||
async def ollama_acompletion(url, data, model_response, encoding, logging_obj):
|
||||
data["stream"] = False
|
||||
try:
|
||||
timeout = aiohttp.ClientTimeout(total=600) # 10 minutes
|
||||
timeout = aiohttp.ClientTimeout(total=litellm.request_timeout) # 10 minutes
|
||||
async with aiohttp.ClientSession(timeout=timeout) as session:
|
||||
resp = await session.post(url, json=data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue