feat(embeddings): support OpenAI-compatible embeddings providers - #193
feat(embeddings): support OpenAI-compatible embeddings providers#193yordis wants to merge 2 commits into
Conversation
Operators want to point Memorizer at hosted OpenAI or any OpenAI-compatible gateway (LiteLLM, vLLM, Azure OpenAI, LocalAI) without standing up Ollama. Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
|
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
|
Opened replacement PR #194 on top of this work: https://github.com/petabridge/memorizer/pull/194\n\nAdditional changes included there:\n- Preserve the OpenAI-compatible embedding provider implementation from this PR.\n- Apply active embedding provider settings before dimension validation on save/activation so migration checks use the selected provider shape.\n- Keep embedding API keys sourced from runtime configuration only; provider_settings JSON no longer stores API keys.\n- Redact provider config responses and recursively strip sensitive keys before provider config is stored.\n- Add a migration to remove any previously persisted provider API keys from provider_settings.config.\n- Scope bearer auth to individual OpenAI-compatible embedding requests so keys are not sent to Ollama endpoints.\n- Make fallback embedding dimensions schema-safe during dimension migrations.\n- Add focused tests for request auth behavior and provider config sanitization.\n\n#194 includes |


ApiKey.Providerdefaults toollama, no schema migration, no required new settings, no change to the Ollama wire format.