Skip to content

Harden OpenAI-compatible embedding provider support - #194

Merged
Aaronontheweb merged 3 commits into
petabridge:devfrom
Aaronontheweb:petabridge/pr193-embedding-provider-hardening
Jun 26, 2026
Merged

Harden OpenAI-compatible embedding provider support#194
Aaronontheweb merged 3 commits into
petabridge:devfrom
Aaronontheweb:petabridge/pr193-embedding-provider-hardening

Conversation

@Aaronontheweb

Copy link
Copy Markdown
Member

Builds on #193 and preserves the contributor's OpenAI-compatible embeddings work while addressing provider migration and credential handling concerns.\n\nCloses #193.\n\n## Summary\n- Add OpenAI-compatible embedding request/response support alongside Ollama.\n- Apply active embedding provider settings before dimension validation on save/activation.\n- Keep embedding API keys sourced from runtime configuration only, not provider_settings JSON.\n- Redact and recursively strip sensitive provider config keys before API display or database storage.\n- Add a migration to remove any previously persisted provider API keys from provider_settings.config.\n- Make fallback embedding dimensions schema-safe during dimension migrations.\n- Add focused unit tests for provider request auth and config sanitization.\n\n## Testing\n- git diff --check\n- dotnet test src/Memorizer.UnitTests/Memorizer.UnitTests.csproj --filter "EmbeddingApiClientTests|ProviderConfigSanitizerTests" --no-restore could not run locally because global.json requires .NET SDK 10.0.102, which is not installed in this environment.

yordis and others added 3 commits June 24, 2026 14:25
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>
@Aaronontheweb
Aaronontheweb merged commit 0090361 into petabridge:dev Jun 26, 2026
2 checks passed
@Aaronontheweb
Aaronontheweb deleted the petabridge/pr193-embedding-provider-hardening branch June 26, 2026 16:51
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.

2 participants