Files
wehub-resource-sync e4dcfc49aa
Tests / Import Check (Python 3.13) (push) Has been cancelled
Tests / Import Check (Python 3.14) (push) Has been cancelled
Tests / Python Tests (Python 3.11) (push) Has been cancelled
Tests / Python Tests (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.14) (push) Has been cancelled
Tests / Test Summary (push) Has been cancelled
Tests / Lint and Format (push) Has been cancelled
Tests / Web Node Tests (push) Has been cancelled
Tests / Import Check (Python 3.11) (push) Has been cancelled
Tests / Import Check (Python 3.12) (push) Has been cancelled
Tests / Python Tests (Python 3.13) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:00:43 +08:00

42 lines
1.3 KiB
Python

"""Unified embedding client and adapters for all DeepTutor modules.
Supported bindings are resolved by ``services.config.provider_runtime`` and
currently include openai, custom, azure_openai, cohere, jina, ollama, vllm,
siliconflow, aliyun, openrouter, plus legacy custom_openai_sdk configs.
"""
from .adapters import (
BaseEmbeddingAdapter,
CohereEmbeddingAdapter,
DashScopeMultiModalEmbeddingAdapter,
EmbeddingProviderError,
EmbeddingRequest,
EmbeddingResponse,
JinaEmbeddingAdapter,
OllamaEmbeddingAdapter,
OpenAICompatibleEmbeddingAdapter,
OpenAISDKEmbeddingAdapter,
)
from .client import EmbeddingClient, get_embedding_client, reset_embedding_client
from .config import EmbeddingConfig, get_embedding_config
from .validation import validate_embedding_batch
__all__ = [
"EmbeddingClient",
"EmbeddingConfig",
"get_embedding_client",
"get_embedding_config",
"reset_embedding_client",
"validate_embedding_batch",
"BaseEmbeddingAdapter",
"EmbeddingProviderError",
"EmbeddingRequest",
"EmbeddingResponse",
"OpenAICompatibleEmbeddingAdapter",
"OpenAISDKEmbeddingAdapter",
"DashScopeMultiModalEmbeddingAdapter",
"CohereEmbeddingAdapter",
"JinaEmbeddingAdapter",
"OllamaEmbeddingAdapter",
]