feat(providers): OpenRouter adapter + Ollama embedding support — M3-004/006 (#311)
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed

Co-authored-by: Jason Woltje <jason@diversecanvas.com>
Co-committed-by: Jason Woltje <jason@diversecanvas.com>
This commit was merged in pull request #311.
This commit is contained in:
2026-03-21 21:38:09 +00:00
committed by jason.woltje
parent 08da6b76d1
commit 10761f3e47
4 changed files with 295 additions and 4 deletions

View File

@@ -8,7 +8,12 @@ import type {
ProviderHealth,
ProviderInfo,
} from '@mosaic/types';
import { AnthropicAdapter, OllamaAdapter, OpenAIAdapter } from './adapters/index.js';
import {
AnthropicAdapter,
OllamaAdapter,
OpenAIAdapter,
OpenRouterAdapter,
} from './adapters/index.js';
import type { TestConnectionResultDto } from './provider.dto.js';
/** Default health check interval in seconds */
@@ -46,6 +51,7 @@ export class ProviderService implements OnModuleInit, OnModuleDestroy {
new OllamaAdapter(this.registry),
new AnthropicAdapter(this.registry),
new OpenAIAdapter(this.registry),
new OpenRouterAdapter(),
];
// Run all adapter registrations first (Ollama, Anthropic, and any future adapters)