Skip to content

Azure API error #4

@ruyhliu

Description

@ruyhliu

Hello,

I am using the Azure OpenAI service and have had the following error message, when initialising the model:

# Or, to use with Azure
tm = TopicGPT(
    api_key = <your-azure-openai-api-key>,
    azure_endpoint = {
         "endpoint": <your-azure-openai-endpoint-url>,
         "api_version": <api-version>
     },
    n_topics = 20
)

TypeError: TopicGPT.init() got an unexpected keyword argument 'azure_endpoint'

On another note, api_key needs to change to openai_api_key on this snippet in my testing.

Any clues to fix this error?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions