feat(M3-003): OpenAI provider adapter for Codex gpt-5.4 (#310)
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 #310.
This commit is contained in:
2026-03-21 21:35:43 +00:00
committed by jason.woltje
parent 5d4efb467c
commit 08da6b76d1
5 changed files with 229 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import type {
ProviderHealth,
ProviderInfo,
} from '@mosaic/types';
import { AnthropicAdapter, OllamaAdapter } from './adapters/index.js';
import { AnthropicAdapter, OllamaAdapter, OpenAIAdapter } from './adapters/index.js';
import type { TestConnectionResultDto } from './provider.dto.js';
/** Default health check interval in seconds */
@@ -42,7 +42,11 @@ 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)];
this.adapters = [
new OllamaAdapter(this.registry),
new AnthropicAdapter(this.registry),
new OpenAIAdapter(this.registry),
];
// Run all adapter registrations first (Ollama, Anthropic, and any future adapters)
await this.registerAll();