Fix #1119, no content when streaming.
This commit is contained in:
parent
52375e0377
commit
1feb6317f6
@ -221,6 +221,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
|
||||
async with aiohttp.ClientSession(timeout=timeout) as session:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user