mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
BUG Change of OpenAI connection doesn't stick after reboot #759
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @corticalstack on GitHub (Apr 29, 2024).
Bug Report
Description
Bug Summary:
Changed OpenAI API url/key from default
https://api.openai.com/v1tohttps://<external LiteLLM server>/v1.On reboot of server, OpenAI API url/key reverted to api.openai.com
Environment
Thanks
@tjbck commented on GitHub (Apr 29, 2024):
Duplicate: #1022
@justinh-rahb commented on GitHub (Apr 29, 2024):
Adding this tutorial for persisting it with environment variables:
https://docs.openwebui.com/tutorial/openai
@corticalstack commented on GitHub (Apr 30, 2024):
That's awesome @justinh-rahb , can confirm works to stick openai connection after restart, setting openai api as follows in docker-compose for open-webui in Portainer, for external LiteLLM:
Thanks!
@corticalstack commented on GitHub (May 1, 2024):
Incidentally @justinh-rahb , setting automatic1111 url/default model/image size also don't stick after reboot.
Might this also be solved by setting the appropriate environment variables? Would you know what those are?
Thanks!
@justinh-rahb commented on GitHub (May 1, 2024):
These are all of the relevant envvars: