Skip to content

fix(llm): Fix when use custom embedding providers.#339

Merged
qin-ctx merged 4 commits intovolcengine:mainfrom
lx200916:main
Mar 10, 2026
Merged

fix(llm): Fix when use custom embedding providers.#339
qin-ctx merged 4 commits intovolcengine:mainfrom
lx200916:main

Conversation

@lx200916
Copy link
Copy Markdown
Contributor

@lx200916 lx200916 commented Feb 9, 2026

Description

This pull request updates the embedding request logic in opencontext/llm/llm_client.py to better handle different LLM providers. The main change is switching the order of provider checks and ensuring that multimodal embeddings are used only for the DOUBAO provider.

Embedding provider logic update:

  • Changed the provider check to prioritize LLMProvider.DOUBAO and use multimodal_embeddings only for this provider, while other providers (like OPENAI) continue to use the standard embedding API.
image

@MaojiaSheng MaojiaSheng enabled auto-merge March 6, 2026 05:26
auto-merge was automatically disabled March 9, 2026 08:23

Head branch was pushed to by a user without write access

@qin-ctx qin-ctx merged commit fc2ddb1 into volcengine:main Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants