mattvr/ShellGPT

Allow to set a custom OpenAI endpoint URL

felipecrs opened this issue · 3 comments

Which would be super useful to pair with https://github.com/aaamoon/copilot-gpt4-service.

Hey @felipecrs, I just added support for changing the API URL in 0.3.6. You can set the environment variable for OPENAI_CHAT_URL and it will use that. Let me know if that works for you!

That's awesome! Thanks a lot.

BTW works like a charm!

docker run -d --name copilot-gpt4-service -p 8080:8080 aaamoon/copilot-gpt4-service:latestexport OPENAI_API_KEY="ghu_***"export OPENAI_CHAT_URL="http://localhost:8080/v1/chat/completions"gpt 'hi who are you'
I'm OpenAI's artificial intelligence assistant. I can help answer questions, provide information, and assist with various tasks.

It would be extra great to be able to set these in the config file as well, but don't worry, no rush.