Merge pull request #630 from soichisumi/support-azureopenai
add "azure_openai" in llm_binding and embedding_binding
This commit is contained in:
@@ -551,10 +551,10 @@ def get_api_key_dependency(api_key: Optional[str]):
|
|||||||
|
|
||||||
def create_app(args):
|
def create_app(args):
|
||||||
# Verify that bindings arer correctly setup
|
# Verify that bindings arer correctly setup
|
||||||
if args.llm_binding not in ["lollms", "ollama", "openai"]:
|
if args.llm_binding not in ["lollms", "ollama", "openai", "azure_openai"]:
|
||||||
raise Exception("llm binding not supported")
|
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")
|
raise Exception("embedding binding not supported")
|
||||||
|
|
||||||
# Add SSL validation
|
# Add SSL validation
|
||||||
|
Reference in New Issue
Block a user