feat(M3-002): implement AnthropicAdapter for Claude Sonnet 4.6, Opus 4.6, and Haiku 4.5 (#309)
Some checks failed
ci/woodpecker/push/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 #309.
This commit is contained in:
2026-03-21 21:33:55 +00:00
committed by jason.woltje
parent 6c6bcbdb7f
commit 5d4efb467c
5 changed files with 214 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ import type {
ProviderHealth,
ProviderInfo,
} from '@mosaic/types';
import { AnthropicAdapter, OllamaAdapter, OpenAIAdapter } from './adapters/index.js';
import { AnthropicAdapter, OllamaAdapter } from './adapters/index.js';
import type { TestConnectionResultDto } from './provider.dto.js';
/** Default health check interval in seconds */
@@ -42,11 +42,7 @@ export class ProviderService implements OnModuleInit, OnModuleDestroy {
this.registry = new ModelRegistry(authStorage);
// Build the default set of adapters that rely on the registry
this.adapters = [
new OllamaAdapter(this.registry),
new AnthropicAdapter(this.registry),
new OpenAIAdapter(this.registry),
];
this.adapters = [new OllamaAdapter(this.registry), new AnthropicAdapter(this.registry)];
// Run all adapter registrations first (Ollama, Anthropic, and any future adapters)
await this.registerAll();