Greetings, chatgpt client works fine with openai. Now I'm trying with my instance of azure. The endpoint changes to https://YOUR_RESOURCE_NAME.openai.azure.com/, which for experimentation, I changed the CS_OPENAI_URL_BASE (in sgcHTTP_API_OpenAI) constant to reflect.
So, tracing into TsgcHTTP_API_OpenAI_Base.DoHTTP_POST(), I'm thinking the request (including headers) is set up in a way that doesn't correspond to what azure specifically is expecting. When I run your example client, I get a 404. I verified the api key as generated (see attached shot).
This python example that msft provides is pretty simple: https://learn.microsoft.com/en-us/azure/ai-services/openai/quickstart?tabs=command-line&pivots=programming-language-python
Thanks for help,
James
So, tracing into TsgcHTTP_API_OpenAI_Base.DoHTTP_POST(), I'm thinking the request (including headers) is set up in a way that doesn't correspond to what azure specifically is expecting. When I run your example client, I get a 404. I verified the api key as generated (see attached shot).
This python example that msft provides is pretty simple: https://learn.microsoft.com/en-us/azure/ai-services/openai/quickstart?tabs=command-line&pivots=programming-language-python
Thanks for help,
James