feat(providers): OpenRouter adapter + Ollama embedding support — M3-004/006 #311

Merged
jason.woltje merged 1 commits from feat/m3-openrouter-ollama-embed-impl into main 2026-03-21 21:38:11 +00:00
Owner

OpenRouterAdapter with dynamic model list from /api/v1/models. Ollama embed() method + embedding model registration.

OpenRouterAdapter with dynamic model list from /api/v1/models. Ollama embed() method + embedding model registration.
jason.woltje added 1 commit 2026-03-21 21:36:10 +00:00
feat(M3-004,M3-006): add OpenRouter adapter and Ollama embedding support
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
ad98755014
- M3-004: Implement OpenRouterAdapter using openai SDK with custom base URL
  (https://openrouter.ai/api/v1). Fetches model catalog on registration,
  gracefully degrades when OPENROUTER_API_KEY is absent, streams completions
  via OpenAI-compatible API.

- M3-006: Enhance OllamaAdapter with embedding model registration
  (nomic-embed-text, mxbai-embed-large) and an embed(text, model?) method
  that calls Ollama's /api/embeddings endpoint. listModels() now returns
  both completion and embedding models. Prepares for M3-009 EmbeddingService.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason.woltje force-pushed feat/m3-openrouter-ollama-embed-impl from ad98755014 to 360d7fe96d 2026-03-21 21:38:03 +00:00 Compare
jason.woltje merged commit 10761f3e47 into main 2026-03-21 21:38:11 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#311