mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-20 08:32:25 +00:00
Add SSL verification
This commit is contained in:
parent
7e4594e08d
commit
73be53d4bd
@ -120,7 +120,7 @@ class AzureOpenAIProvider(LLMProvider):
|
|||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
async with httpx.AsyncClient(timeout=60.0) as client:
|
async with httpx.AsyncClient(timeout=60.0, verify=True) as client:
|
||||||
response = await client.post(url, headers=headers, json=payload)
|
response = await client.post(url, headers=headers, json=payload)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
return LLMResponse(
|
return LLMResponse(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user