jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.57k stars 307 forks source link

feat: add support for Azure OpenAI deployment #293

Closed jackyu1996 closed 9 months ago

jackyu1996 commented 9 months ago

By setting several environment variables, this change allows the use of OpenAI service provided by Azure. It might solve #212.

jackyu1996 commented 9 months ago

@jackMort Hi, thank you for such a wonderful project. I have corrected the style noncompliance few days ago. Would you be so kind as to approve the workflow and see whether this fork works? I have tried and it seems OK for Azure OpenAI API. Since I don't have access to the official OpenAI API, could you please have some tests on it? Thank you so much!

I referenced this script but haven't thoroughly tested the new line conversion and streaming mechanism. I might need to use my fork more often to validate it.

singular0 commented 9 months ago

@jackMort This MR essentially broke the plugin. Please consider approving #299 to fix it.