jackMort / ChatGPT.nvim

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

How to use with Azure OpenAI #212

Closed juliano-barbosa closed 9 months ago

juliano-barbosa commented 1 year ago

is possible use this with azure openAI ?

curl:

curl https://<your-resource>.openai.azure.com/openai/deployments/<your-deploy>/completions?api-version=2022-12-01 \ -H "Content-Type: application/json" \ -H "api-key: YOUR_API_KEY" \ -d '{ "prompt": "", "max_tokens": 100, "temperature": 1, "frequency_penalty": 0, "presence_penalty": 0, "top_p": 0.5, "stop": null }'

lianghx-319 commented 1 year ago

If the apis are compatible, I think this pr can help you https://github.com/jackMort/ChatGPT.nvim/pull/210