Pythagora-io / gpt-pilot

The first real AI developer
Other
29.06k stars 2.91k forks source link

add first-class support for Azure OpenAI #998

Closed senko closed 3 weeks ago

senko commented 4 weeks ago

Azure OpenAI requires some extra parameters which are not exposed via the default OpenAI client. this adds support for them.

To use, specify the azure provider in config.json:

    "azure": {
      "base_url": "https://your-resource-name.openai.azure.com/",
      "api_key": "your-api-key",
      "connect_timeout": 60.0,
      "read_timeout": 10.0,
      "extra": {
        "azure_deployment": "your-azure-deployment-id",
        "api_version": "2024-02-01"
      }
    }

... and then use it in agent configs.

nikzart3 commented 3 weeks ago

GG