iuiaoin / wechat-gptbot

A wechat robot based on ChatGPT with no risk, very stable! 🚀
MIT License
595 stars 116 forks source link

[Bug]: Azure service issues #64

Closed wangxing7714436 closed 1 year ago

wangxing7714436 commented 1 year ago

Search for answers in existing issues

Python version

python 3.8

Issue description

1690114179887

config set the use_azure api = true, however still request an openai endpoint. my azure endpoint is like https://xxxxx.openai.azure.com/openai/deployments/chatbot/chat/completions?api-version=2023-03-15-preview

Repro steps

No response

Relevant log output

No response

iuiaoin commented 1 year ago

According to your screenshot, openai_api_base and model are empty, and yet they need to be filled with valid values to make azure service work. In your case, open_api_base should be "https://xxxxx.openai.azure.com/" and model should be the model you deployed.