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

conversation_without_data in app.py doesn't use configuration for API version #378

Open
wcwong opened this issue Nov 10, 2023 · 0 comments

Comments

@wcwong
Copy link

wcwong commented Nov 10, 2023

In app.py, line 391

    openai.api_base = AZURE_OPENAI_ENDPOINT if AZURE_OPENAI_ENDPOINT else f"https://{AZURE_OPENAI_RESOURCE}.openai.azure.com/"
    openai.api_version = "2023-08-01-preview"
    openai.api_key = AZURE_OPENAI_KEY

instead of the hard coded value, openai.api_version should be assigned the value from the configuration setting. Specifically:

   openai.api_version = AZURE_OPENAI_PREVIEW_API_VERSION
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

1 participant