mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 13:48:09 +00:00
- Update _matches_provider_pattern for anthropic to use 'in' (contains) check instead of strict startswith for 'claude' keyword, and accept any model starting with 'anthropic' regardless of separator character - Add pattern-matching fallback to _infer_provider_from_model so custom model names without provider prefix are correctly routed - Update _is_anthropic_model to also detect 'anthropic.' substring - Update ANTHROPIC_PREFIXES constant for consistency - Add regression tests for all affected methods Co-Authored-By: João <joao@crewai.com>