Merge pull request #771 from enriquecatala/fix-litellm-litellm-proxy-support

Enable LiteLLM proxy with embedding_binding_host
This commit is contained in:
zrguo 2025-02-14 09:43:55 +08:00 committed by GitHub
commit 4d58ff8bb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1027,7 +1027,8 @@ def create_app(args):
if args.embedding_binding == "azure_openai"
else openai_embed(
texts,
model=args.embedding_model, # no host is used for openai,
model=args.embedding_model,
base_url=args.embedding_binding_host,
api_key=args.embedding_binding_api_key,
),
)