[Migration #121.1] Implement multi-provider LLM abstraction layer #308

Closed
opened 2026-02-04 02:35:53 +00:00 by jason.woltje · 0 comments
Owner

Parent EPIC: #121 - Backend Migration from Jarvis r1
Phase: 1 - LLM Abstraction Layer
Estimate: 2-3 days

Description

Migrate the multi-provider LLM infrastructure from jarvis r1 to support Ollama, OpenAI, Anthropic, and other providers.

Source Files

  • jarvis/core/conversation.py (LLM manager)
  • jarvis/storage/models/llm_routing.py
  • jarvis/storage/repositories/llm_routing.py
  • jarvis/api/routes/llm.py
  • jarvis/api/schemas/llm_routing.py

Target Implementation

  • Create apps/api/src/llm/ module
  • Implement provider abstraction interfaces
  • Add support for multiple LLM providers
  • Create provider registry and routing logic
  • Add configuration management

Acceptance Criteria

  • LLM provider interface defined
  • Ollama provider implemented
  • Provider registry and routing
  • Configuration schema for providers
  • Unit tests (85% coverage)
  • Integration tests for each provider
**Parent EPIC:** #121 - Backend Migration from Jarvis r1 **Phase:** 1 - LLM Abstraction Layer **Estimate:** 2-3 days ## Description Migrate the multi-provider LLM infrastructure from jarvis r1 to support Ollama, OpenAI, Anthropic, and other providers. ## Source Files - `jarvis/core/conversation.py` (LLM manager) - `jarvis/storage/models/llm_routing.py` - `jarvis/storage/repositories/llm_routing.py` - `jarvis/api/routes/llm.py` - `jarvis/api/schemas/llm_routing.py` ## Target Implementation - Create `apps/api/src/llm/` module - Implement provider abstraction interfaces - Add support for multiple LLM providers - Create provider registry and routing logic - Add configuration management ## Acceptance Criteria - [ ] LLM provider interface defined - [ ] Ollama provider implemented - [ ] Provider registry and routing - [ ] Configuration schema for providers - [ ] Unit tests (85% coverage) - [ ] Integration tests for each provider
jason.woltje added this to the M4-LLM (0.0.4) milestone 2026-02-04 02:35:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#308