You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(embeddings): support passthrough remote model ids
1. Allow explicit provider-prefixed passthrough model ids for remote endpoints
- keep the existing slash-prefixed forms (openai/..., voyage/..., jina/...) working as before
- add explicit colon-prefixed forms (openai:..., voyage:..., jina:...)
- when the colon form is used, pass the model id through after stripping only the provider prefix
- this allows OpenAI-compatible custom endpoints to receive full upstream model ids unchanged, for example:
- openai:openai/text-embedding-ada-002
- openai:jinaai/jina-embeddings-v3
- preserve strict built-in validation for default provider endpoints while allowing passthrough mode for custom API_URL-based setups
2. Allow CMake to pass optional cargo features to the embeddings crate
- add EMBEDDINGS_CARGO_FEATURE_ARGS in cmake/build_embeddings.cmake
- if EMBEDDINGS_CARGO_FEATURES is set, convert it to a valid cargo CLI fragment:
--features <value>
- this makes it possible to configure builds such as download-ort from the CMake side without hard-coding the flag in the build script
Additional remote-model adjustment:
- cache inferred embedding dimensionality in remote providers so passthrough/custom models can learn their vector dimension from a successful response instead of requiring a built-in static mapping
- apply that caching approach consistently across OpenAI, Voyage, and Jina
0 commit comments