Add OpenAI LLM Provider #124

Closed
opened 2026-01-30 21:28:10 +00:00 by jason.woltje · 0 comments
Owner

Implement OpenAI provider for GPT-4, GPT-3.5, and other OpenAI models.

Objective: Add OpenAI as a supported LLM backend option.

Tasks:

  • Create openai.provider.ts implementing base provider interface
  • Add OpenAI SDK integration
  • Implement chat completion with streaming
  • Add function calling support
  • Handle rate limits and retries
  • Write unit tests with mocks

Acceptance Criteria:

  • Can create chat completions via OpenAI
  • Streaming works correctly
  • API key configuration via database
  • Tests pass with 85%+ coverage

Related: Epic #121, Phase 1 LLM Abstraction
Depends on: #122 (provider interface)

Implement OpenAI provider for GPT-4, GPT-3.5, and other OpenAI models. Objective: Add OpenAI as a supported LLM backend option. Tasks: - Create openai.provider.ts implementing base provider interface - Add OpenAI SDK integration - Implement chat completion with streaming - Add function calling support - Handle rate limits and retries - Write unit tests with mocks Acceptance Criteria: - Can create chat completions via OpenAI - Streaming works correctly - API key configuration via database - Tests pass with 85%+ coverage Related: Epic #121, Phase 1 LLM Abstraction Depends on: #122 (provider interface)
jason.woltje added the apiapip1phase-1 labels 2026-01-30 21:28:10 +00:00
jason.woltje added this to the M4-LLM (0.0.4) milestone 2026-01-30 23:40:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#124