I'm not familiar with go, or I would do it myself.
The idea is to have a way to provide aiac with a way to customize urls, in order to be able to use Azure OpenAI URLs.
The API is the same, just the url has two variable parts, and the header containing the token is different.
As an example, the Azure tenant url is https://tenant.openai.azure.com/, and then the path for our model is my-gpt-35-turbo-deployment. The tenant and my-gpt-35-turbo-deployment are customizable.
The key should be in the header api-key.
I'm not familiar with go, or I would do it myself.
The idea is to have a way to provide aiac with a way to customize urls, in order to be able to use Azure OpenAI URLs. The API is the same, just the url has two variable parts, and the header containing the token is different.
As an example, the Azure tenant url is
https://tenant.openai.azure.com/
, and then the path for our model ismy-gpt-35-turbo-deployment
. Thetenant
andmy-gpt-35-turbo-deployment
are customizable. The key should be in the headerapi-key
.Reference from Azure: https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference