feat: add OpenAI client for fallback support

Implements ModelClient interface with OpenAI SDK to support GPT models
as fallback when local inference is unavailable. Includes tests with
mocked OpenAI API responses.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
William Valentin
2026-02-02 21:10:46 -08:00
parent 7338b390ef
commit 633cfcf713
3 changed files with 88 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
export { AnthropicClient, type AnthropicClientConfig } from './anthropic.js';
export { OpenAIClient, type OpenAIClientConfig } from './openai.js';
export type { Message, ChatRequest, ChatResponse, ModelClient } from './types.js';