fix: remove http2=True — h2 package not installed on Штурвал
Deploy contracts-flask / validate (push) Successful in 0s
Deploy contracts-flask / validate (push) Successful in 0s
This commit is contained in:
@@ -151,7 +151,7 @@ def chat():
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with httpx.Client(http2=True, timeout=120) as client:
|
with httpx.Client(timeout=120) as client:
|
||||||
resp = client.post(
|
resp = client.post(
|
||||||
LLM_URL,
|
LLM_URL,
|
||||||
json={
|
json={
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class HttpxLLMClient:
|
|||||||
"max_tokens": self.max_tokens,
|
"max_tokens": self.max_tokens,
|
||||||
"temperature": self.temperature,
|
"temperature": self.temperature,
|
||||||
}
|
}
|
||||||
with httpx.Client(http2=True, timeout=self.timeout, verify=True) as client:
|
with httpx.Client(timeout=self.timeout, verify=True) as client:
|
||||||
resp = client.post(
|
resp = client.post(
|
||||||
self.url,
|
self.url,
|
||||||
json=payload,
|
json=payload,
|
||||||
|
|||||||
Reference in New Issue
Block a user