Merge branch 'main' into redis_impl

This commit is contained in:
zrguo 2025-01-24 16:27:40 +08:00 committed by GitHub
commit afb30fe6c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -610,10 +610,12 @@ def get_api_key_dependency(api_key: Optional[str]):
def create_app(args):
# Verify that bindings arer correctly setup
if args.llm_binding not in ["lollms", "ollama", "openai", "openai-ollama"]:
if args.llm_binding not in ["lollms", "ollama", "openai", "openai-ollama", "azure_openai"]:
raise Exception("llm binding not supported")
if args.embedding_binding not in ["lollms", "ollama", "openai"]:
if args.embedding_binding not in ["lollms", "ollama", "openai", "azure_openai"]:
raise Exception("embedding binding not supported")
# Add SSL validation