Files
crewAI/lib/crewai/tests
Devin AI 449bb0d61e fix: add Claude 4.7 Opus support (no assistant prefill, drop temperature)
Fixes #5808

- Add supports_assistant_prefill() to BaseLLM, LLM (litellm), and
  AnthropicCompletion
- Claude 4.6+ models reject assistant-role messages as the last message
  in a conversation; split observation into a user-role message instead
- Drop temperature parameter for Claude 4.6+ (not supported)
- Update handle_max_iterations_exceeded to use user-role message for
  no-prefill models
- Use getattr() for backward compatibility with custom LLM adapters
- Add 24 tests covering prefill detection, temperature dropping, message
  splitting, and backward compatibility

Co-Authored-By: João <joao@crewai.com>
2026-05-14 12:38:06 +00:00
..
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2026-05-12 12:39:12 -07:00
2025-10-20 14:10:19 -07:00
2026-02-13 21:34:37 -03:00
2025-10-20 14:10:19 -07:00
2025-12-01 18:56:56 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00