karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.14k stars 119 forks source link

Make OpenAI API endpoint configurable #49

Closed christianromney closed 1 year ago

christianromney commented 1 year ago

Also encode stream :json-false when stream is nil since the API requires a boolean value (https://platform.openai.com/docs/api-reference/chat).

Signed-off-by: Christian Romney christian.romney@nubank.com.br

christianromney commented 1 year ago

Hi! I really like the user experience of your package. I prefer it to the chatgpt package from emacs-openai. I had a problem where I needed to send requests through a (non-system-wide) proxy which led me to add the base uri as a custom var. I also force the json-encoding of stream to a boolean value as indicated by the API documentation. Thanks for sharing your package!

karthink commented 1 year ago

This has been superceded by #67.