SSL error when using AzureOpenAI

Getting the below error whenever I am using AzureOpenAI.

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

Following is the code I am trying to execute:

from openai import AzureOpenAI
openai = AzureOpenAI(
azure_endpoint=AZURE_ENDPOINT,
api_key=API_KEY,
api_version=API_VERSION
)
openai.chat.completions.create(
messages=[{“role”: “user”, “content”: “Hello!”}],
model=MODEL_ID
)

FYI: I am working behind my organization VPN, and have tried nearly every available solution on the web, but haven’t got any results.

Thanks for joining, @tijulukose0402, but this community is primary for developers using the OpenAI developer platform directly, not Azure. The Azure community might be a better place to ask question about AzureOpenAI: https://techcommunity.microsoft.com/category/azure/discussions/azure.

how to inform chatgpt developer that i have subscribed the chatgpt? because in the plan is still stated “free plan” i have the receipt of payment as a proof. Kindly assist. Thank you

You paid some company in the UK $60 for some “chatBOT” year plan.

No such plan exists with OpenAI, and these app companies are likely scams or impersonation fraud that will disappear after taking your money.

So find where you paid, dispute, request refund, charge back the card if you did not want whatever some app or site took your money for.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.