manateelazycat / mind-wave

Emacs AI plugin based on ChatGPT API
GNU General Public License v3.0
159 stars 26 forks source link

[Proposal] support Azure OpenAI API #29

Open wxxb789 opened 1 year ago

wxxb789 commented 1 year ago

I tried define these 3 variables:

  1. (setq mind-wave-api-base "\<my azure openai api endpoint>")
  2. (setq mind-wave-api-type "azure")
  3. (setq mind-wave-api-version "2023-03-15-preview")

It's looks like there are some differences between OpenAI api and Azure OpenAI api. doc: https://github.com/openai/openai-python

It will be great if mind-wave could support both.

Thanks

manateelazycat commented 1 year ago

sorry i haven't time,pr are welcome