Microsoft Azure OpenAI

可用模型清单:https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models

import Agently
agent = (
    Agently.create_agent()
        .set_settings("current_model", "AzureOpenAI")
        .set_settings("model.AzureOpenAI.auth", {
            "api_key": "<Your-API-Key>",
            "api_version": "<Your-API-Version>",
            "azure_endpoint": "<Your-Azure-EndPoint>",
            "azure_deployment": "<Your-Azure-Deployment>",
        })
        # 如果需要切换模型,可参考模型清单: https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models
        # 默认模型: gpt-35-turbo
        .set_settings("model.AzureOpenAI.options", { "model": "gpt-35-turbo" })
)