fix: use ANTHROPIC_DEFAULT_OPUS_MODEL env var for model selection#58
Conversation
The model was hardcoded to "claude-opus-4-5-20251101" in chat session services, ignoring the ANTHROPIC_DEFAULT_OPUS_MODEL environment variable. This caused issues when using alternative API providers (e.g., GLM via z.ai) that don't support Claude model names. Fixes AutoForgeAI#51 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughThree chat session services are updated to dynamically read the Claude model name from the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (1)**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (1)📚 Learning: 2026-01-10T08:23:04.012ZApplied to files:
🔇 Additional comments (3)
Comment |
|
Thank you |
…t project - Verified GET /api/projects/nonexistent returns HTTP 404 - Error response is clear with PROJECT_NOT_FOUND code - No sensitive information leaked in error response - Also verified Kanban board performance with 144 features (0.1ms scroll time) - Screenshots captured for verification Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Feature AutoForgeAI#58: Budget Derivation from Task Complexity - VERIFIED - All 110 unit tests pass - All 9 verification steps pass - No regressions in related tests (Feature AutoForgeAI#57) - Progress: 77/103 features passing (74.8%) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
fix: use ANTHROPIC_DEFAULT_OPUS_MODEL env var for model selection
Summary
ANTHROPIC_DEFAULT_OPUS_MODELenvironment variableclaude-opus-4-5-20251101Changes
Modified 3 files to read model from environment:
server/services/expand_chat_session.pyserver/services/spec_chat_session.pyserver/services/assistant_chat_session.pyProblem
The model was hardcoded to
"claude-opus-4-5-20251101", causing API errors when using alternative providers that don't support Claude model names.Example error from Issue #51:
Solution
Test plan
Fixes #51
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.