Merge pull request #1999 from thiborose/missingDependencyAOAI

Added import of OpenAILLMOptions when using azure_openai
This commit is contained in:
Daniel.y 2025-08-24 10:38:09 +08:00 committed by GitHub
commit 2adbafd6b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,6 +248,7 @@ def create_app(args):
azure_openai_complete_if_cache,
azure_openai_embed,
)
from lightrag.llm.binding_options import OpenAILLMOptions
if args.llm_binding == "aws_bedrock" or args.embedding_binding == "aws_bedrock":
from lightrag.llm.bedrock import bedrock_complete_if_cache, bedrock_embed
if args.embedding_binding == "ollama":