Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure API error #4

Open
ruyhliu opened this issue Jun 20, 2024 · 2 comments
Open

Azure API error #4

ruyhliu opened this issue Jun 20, 2024 · 2 comments

Comments

@ruyhliu
Copy link

ruyhliu commented Jun 20, 2024

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!

@charx0r
Copy link

charx0r commented Jun 21, 2024

Hi, try this

tm = TopicGPT( openai_api_key = api_key_openai, n_topics = 20 )

@Hrishimawal
Copy link

Hrishimawal commented Aug 1, 2024

Hi, I am also facing the same issue, is is not working for azure api?

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

if we try this: tm = TopicGPT( openai_api_key = api_key_openai, n_topics = 20 )

The azure api key does not work here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants