Fix: pass api_base to OpenAIEmbedding (#12151)

This commit is contained in:
shamoon
2026-02-23 13:47:32 -08:00
committed by GitHub
parent 814f57b099
commit fa13ca7a42
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ def get_embedding_model() -> BaseEmbedding:
return OpenAIEmbedding(
model=config.llm_embedding_model or "text-embedding-3-small",
api_key=config.llm_api_key,
api_base=config.llm_endpoint or None,
)
case LLMEmbeddingBackend.HUGGINGFACE:
return HuggingFaceEmbedding(