crewai - 💡(How to fix) Fix [BUG] Model naming prefixes filtering is too strict [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The prefix naming is too strict for our usecases. Here is the code: https://github.com/crewAIInc/crewAI/blob/56b6594669f299e0132bde562f60ff78cb2d889d/lib/crewai/src/crewai/llm.py#L469

We have our own-deployed model so called 'anthropic--claude-...', however the CrewAI code above just filter out my models because it only supports ["claude-", "anthropic."] prefixes

Root Cause

We have our own-deployed model so called 'anthropic--claude-...', however the CrewAI code above just filter out my models because it only supports ["claude-", "anthropic."] prefixes

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Description

The prefix naming is too strict for our usecases. Here is the code: https://github.com/crewAIInc/crewAI/blob/56b6594669f299e0132bde562f60ff78cb2d889d/lib/crewai/src/crewai/llm.py#L469

We have our own-deployed model so called 'anthropic--claude-...', however the CrewAI code above just filter out my models because it only supports ["claude-", "anthropic."] prefixes

Steps to Reproduce

  1. Tried own Anthropic model with different naming prefixes rather than ["claude-", "anthropic."]
  2. CrewAI will filter out these models which lead to incorrect behavior in the output

Expected behavior

We should think about updating this function: https://github.com/crewAIInc/crewAI/blob/56b6594669f299e0132bde562f60ff78cb2d889d/lib/crewai/src/crewai/llm.py#L446 so that it can support wider range of models (e.g., own deployed model with different naming convention)

Screenshots/Code snippets

https://github.com/crewAIInc/crewAI/blob/56b6594669f299e0132bde562f60ff78cb2d889d/lib/crewai/src/crewai/llm.py#L446

Operating System

macOS Catalina

Python Version

3.12

crewAI Version

1.14.2

crewAI Tools Version

1.14.2

Virtual Environment

Venv

Evidence

Incorrect output behavior

Possible Solution

Update list of filtering prefixes

Additional context

None

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

We should think about updating this function: https://github.com/crewAIInc/crewAI/blob/56b6594669f299e0132bde562f60ff78cb2d889d/lib/crewai/src/crewai/llm.py#L446 so that it can support wider range of models (e.g., own deployed model with different naming convention)

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING