revert: swap back to Anthropic SDK from Ollama #17

Merged
forgejo_admin merged 1 commit from 15-revert-ollama-swap into main 2026-03-29 03:48:14 +00:00

Summary

  • Reverts #15 (Ollama swap) to restore Anthropic SDK as the AI provider
  • Lucas has Anthropic tokens — testing with Claude first
  • Ollama/qwen2.5:7b support will be added back via feature flag in #16

Changes

  • app/ai.py — restored Anthropic SDK client, tool definitions in Anthropic format, response parsing for content blocks
  • app/config.py — restored anthropic_api_key and anthropic_model settings, removed ollama_url and ollama_model
  • app/health.py — readiness probe checks anthropic_api_key again
  • requirements.txt — restored anthropic>=0.52,<1, removed openai>=1.0,<2
  • tests/test_ai.py — restored Anthropic mock format
  • tests/test_confirmation.py — restored Anthropic mock format
  • tests/test_groupme.py — restored ANTHROPIC_API_KEY env var in fixtures

Test Plan

  • 109 tests passing after revert
  • All Anthropic SDK mocks restored

Review Checklist

  • Tests pass (109)
  • Clean revert of single commit
  • No unrelated changes
## Summary - Reverts #15 (Ollama swap) to restore Anthropic SDK as the AI provider - Lucas has Anthropic tokens — testing with Claude first - Ollama/qwen2.5:7b support will be added back via feature flag in #16 ## Changes - `app/ai.py` — restored Anthropic SDK client, tool definitions in Anthropic format, response parsing for content blocks - `app/config.py` — restored `anthropic_api_key` and `anthropic_model` settings, removed `ollama_url` and `ollama_model` - `app/health.py` — readiness probe checks `anthropic_api_key` again - `requirements.txt` — restored `anthropic>=0.52,<1`, removed `openai>=1.0,<2` - `tests/test_ai.py` — restored Anthropic mock format - `tests/test_confirmation.py` — restored Anthropic mock format - `tests/test_groupme.py` — restored `ANTHROPIC_API_KEY` env var in fixtures ## Test Plan - 109 tests passing after revert - All Anthropic SDK mocks restored ## Review Checklist - [x] Tests pass (109) - [x] Clean revert of single commit - [x] No unrelated changes ## Related Notes - `project-westside-ai-assistant` — parent project - Closes forgejo_admin/westside-ai-assistant#15 (reverts it) - #16 — feature flag ticket (backlog) for provider switching
Revert "feat: swap Anthropic SDK for Ollama qwen2.5:7b (#15)"
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2f02a0fbb9
This reverts commit 45f99aa5df.
forgejo_admin deleted branch 15-revert-ollama-swap 2026-03-29 03:48:14 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo_admin/westside-ai-assistant!17
No description provided.