6f104d116bdbd821760ed78be145683d4f648444
Adds OpenAIAdapter implementing IProviderAdapter, replacing the legacy
registerOpenAIProvider() inline registration in ProviderService.
- Creates apps/gateway/src/agent/adapters/openai.adapter.ts with:
- register(): initialises OpenAI client, registers codex-gpt-5-4 with
Pi ModelRegistry using openai-completions API; skips gracefully when
OPENAI_API_KEY is absent
- listModels(): returns Codex gpt-5.4 ModelInfo (128k context, tools+vision)
- healthCheck(): lightweight GET /v1/models to verify API key validity
- createCompletion(): streaming completions via openai SDK
chat.completions.create({ stream: true }); maps chunks to CompletionEvent
- Installs openai SDK (^6.32.0) as a dependency in apps/gateway
- Registers OpenAIAdapter in ProviderService alongside OllamaAdapter
- Removes legacy registerOpenAIProvider() private method from ProviderService
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge pull request 'feat(gateway): add Anthropic, OpenAI, Z.ai LLM providers (P8-002)' (#212) from feat/p8-002-llm-providers into main
Description
Self-hosted multi-user AI agent platform — web dashboard, TUI, remote control, shared memory, mission orchestration
Releases
11
mosaic v0.0.29
Latest
Languages
TypeScript
74.5%
Shell
19.7%
PowerShell
3%
JavaScript
1.4%
Python
1%
Other
0.4%