feat: openai backend support

This commit is contained in:
Timothy J. Baek
2024-01-04 16:49:34 -08:00
parent 31fcb9d6fc
commit 5e4dc98f44
2 changed files with 121 additions and 0 deletions
+8
View File
@@ -27,6 +27,14 @@ if ENV == "prod":
if OLLAMA_API_BASE_URL == "/ollama/api":
OLLAMA_API_BASE_URL = "http://host.docker.internal:11434/api"
####################################
# OPENAI_API
####################################
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY", "")
OPENAI_API_BASE_URL = os.environ.get("OPENAI_API_BASE_URL", "https://api.openai.com/v1")
####################################
# WEBUI_VERSION
####################################