Fix: pass api_base to OpenAIEmbedding (#12151)

This commit is contained in:
shamoon authored and GitHub committed 2026-02-23 13:47:32 -08:00
1 parent 814f57b099
commit fa13ca7a42
2 files changed
+3

No files matched your search

+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(