Skip to content

Disable SSL Verification when using (ChatCompletionsClient class of azure.ai.inference) #310

@vbeer008

Description

@vbeer008

Hi,

Trying to test the code in ("06-building-trustworthy-agents), but failed with

"[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1028)"

From another chapter code testing, I could do the similar for OpenAIChatCompletion class in semantic-kernel or AzureOpenAI or OpenAI Class in OpenAI by passing "http_client=httpx.Client(verify=False)" during the client instantiation

Looked up the official MS document for ChatCompletionsClient class. However, I could not see any possibility to disable the SSL verification.

Anyone can help or suggest a solution please? If need to use SSL for testing purpose, (Tried import certifi, and connection_verify=certifi.where()) Same issue that connection_verify is not supported in ChatCompletionsClient class.

Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions