npiv / chatblade

A CLI Swiss Army Knife for ChatGPT
GNU General Public License v3.0
2.58k stars 92 forks source link

fix: azure deployment name not read #65

Closed jackyu1996 closed 11 months ago

jackyu1996 commented 11 months ago

Since the release of openai-python 1.0, breaking changes were introduced for azure openai client creation. So the deployment name needs to be passed and OPENAI_API_BASE should be changed into AZURE_OPENAI_ENDPOINT for it to be read by openai-python.