Niek / chatgpt-web

ChatGPT web interface using the OpenAI API
https://niek.github.io/chatgpt-web/
GNU General Public License v3.0
1.83k stars 462 forks source link

Add UI to change API URL #150

Open PierreMesure opened 1 year ago

PierreMesure commented 1 year ago

Hi,

Thank you for this tool, I just saw that it was possible to override the API URL with an env variable since that commit! Great!

Is there any plan to add this as a configurable parameter in the UI? It would make it easier to use with tools like LocalAI.

Webifi commented 1 year ago

I've been trying to fit a bunch of the feature requests into #152 but I'm not sure about this one.

If I were to add it to my fork, I'd want to put it in the chat profile options -- but since I've made those something you can export and share, the security implications of a shared profile redirecting traffic through another endpoint is problematic, so I won't do that.

If it's not per profile, then it seems like it would be better to just use an env and run a local copy with the desired URL.

Thoughts?

countzero commented 3 months ago

+1