Refactor LlmService to Use Provider Pattern #127

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

Refactor existing LlmService to delegate to LLM providers.

Objective: Migrate existing Ollama-specific code to use new provider abstraction.

Tasks:

  • Update llm.service.ts to use LlmManager
  • Remove Ollama-specific code from service
  • Delegate all LLM calls to providers
  • Maintain backward compatibility
  • Update existing tests
  • Ensure no breaking changes to API endpoints

Acceptance Criteria:

  • Existing chat functionality unbroken
  • All tests pass
  • Service uses provider pattern
  • No Ollama-specific code in service layer

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

Refactor existing LlmService to delegate to LLM providers. Objective: Migrate existing Ollama-specific code to use new provider abstraction. Tasks: - Update llm.service.ts to use LlmManager - Remove Ollama-specific code from service - Delegate all LLM calls to providers - Maintain backward compatibility - Update existing tests - Ensure no breaking changes to API endpoints Acceptance Criteria: - Existing chat functionality unbroken - All tests pass - Service uses provider pattern - No Ollama-specific code in service layer Related: Epic #121, Phase 1 LLM Abstraction Depends on: #122, #123, #126 (interface, Ollama provider, manager)
jason.woltje added the p0apiapiphase-1 labels 2026-01-30 21:28:32 +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#127