gofireflyio / aiac

Artificial Intelligence Infrastructure-as-Code Generator.
Apache License 2.0
3.52k stars 276 forks source link

Support Azure OpenAI urls #68

Closed mborgraeve closed 1 year ago

mborgraeve commented 1 year ago

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

liavyona commented 1 year ago

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