Skip to content

Support Azure OpenAI in transformer agents #23324

Closed
@huajianmao

Description

@huajianmao

Feature request

Support it by setting the openai properties.

openai.api_type = "azure"
openai.api_version = "2023-03-15-preview"
openai.api_base = "https://THE_NAME.openai.azure.com/"
openai.api_key = "AZURE_OPENAI_API_KEY"

# response = openai.Completion.create(engine="xxxx", ...)

Motivation

Azure OpenAI is also used by a lot of people.
It would be great to support it in the transformer agents.

Your contribution

I may contribute to test it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions