Skip to content

Azure support - use same ENV names as python-openai#26

Merged
npiv merged 1 commit intonpiv:mainfrom
phromo:feature/azure_openai_support
Mar 27, 2023
Merged

Azure support - use same ENV names as python-openai#26
npiv merged 1 commit intonpiv:mainfrom
phromo:feature/azure_openai_support

Conversation

@phromo
Copy link
Copy Markdown
Contributor

@phromo phromo commented Mar 27, 2023

This makes chatblade use the same ENV variables that openai-python already supports:

  • rename OPENAI_API_ENDPOINT to OPENAI_API_BASE
  • add additional required OPENAI_API_TYPE=azure.

Note that the engine name setting is still required.

Comment on chat.py:84 -- In the current openai the default openai.api_version does not work with the Chat API on azure, so need to override. Once openai/openai-python#335 is released that workaround can be removed, and we only need the engine setting.

@npiv npiv merged commit 2a63f82 into npiv:main Mar 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants