npiv / chatblade

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

Azure OpenAI support for preview version fix #76

Closed thaapaniemi closed 8 months ago

thaapaniemi commented 9 months ago

The current version of chatblade doesn't work with at least 2023-09-01-preview version of API because the parameters temperature, max_tokens, presence_penalty and top_p are required.

I managed to get it working with quick-and-dirty solution by adding these to chat.py DEFAULT_OPENAI_SETTINGS dict. However, I believe that providing the ability to manually adjust these parameters with CLI arguments or environment variables would be a better solution.

npiv commented 8 months ago

I merged https://github.com/npiv/chatblade/pull/67 which fixes some things for azure users.

I don't use it myself so its hard to test, let me know if it works for you now