Support Azure OpenAI urls
mborgraeve opened this issue · comments
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
.
Reference from Azure:
https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference
Hi @mborgraeve
See #59 it is already implemented
aiac get --api-version="2023-05-15" --url="https://tenant.openai.azure.com/openai/deployments/testdeployment" terraform code for ssm paramter