Skip to content

AzureOpenAI SSL #8807

Answered by 595972434
fcasalen asked this question in Q&A
Nov 9, 2023 · 4 comments · 1 reply

You must be logged in to vote

you can provider a customer http client to disable the verify

    llm = AzureOpenAI(
        model="gpt-4o",
        deployment_name="deployment",
        api_key=os.getenv('API_KEY'),
        azure_endpoint=os.getenv('API_ENDPOINT'),
        api_version=os.getenv('API_VERSION'),
        http_client= httpx.Client(verify=False),  # Use the sync client here
        async_http_client=httpx.AsyncClient(verify=False)  # Use the async client here
    )

Replies: 4 comments 1 reply

You must be logged in to vote
1 reply
@fcasalen

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Answer selected by logan-markewich

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants