emacs-openai / openai

Elisp library for the OpenAI API
GNU General Public License v3.0
100 stars 17 forks source link

Make API base url `"https://api.openai.com/v1"` configurable #14

Closed JCZuurmond closed 1 year ago

JCZuurmond commented 1 year ago

I want to use an OpenAI endpoint from Azure. I expect this can be implemented by adding a new variable baseurl that by default is "https://api.openai.com/v1". Then, use the baseurl in all the requests. Users may override the baseurl with another endpoint, like the one on Azure.