refactor #1
@@ -17,7 +17,7 @@ class OllamaClient:
|
|||||||
"stream": False,
|
"stream": False,
|
||||||
"options": {"temperature": 0},
|
"options": {"temperature": 0},
|
||||||
}
|
}
|
||||||
with httpx.Client(timeout=60) as client:
|
with httpx.Client(timeout=600) as client:
|
||||||
response = client.post(url, json=payload)
|
response = client.post(url, json=payload)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
data = response.json()
|
data = response.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user