Skip to content

[BUG] crewai 0.120.0 doesn’t think #2857

Open
@MoShiha

Description

@MoShiha

Description

Litellm expects “thinking” but got text instead error is returned when using crewai 0.120.0 with Claude AI sonet 3.7 and reasoning is enabled.

Steps to Reproduce

!pip install “crewai==0.120.0”

Instantiate LLM with Claude Sonnet 3.7 as your model and set reasoning to any value (e.g., “high”)

Once the crew is kicked off it fails with the above mentioned error.

Expected behavior

Run normally as previous stable version. I was able to get the code up and running again by reverting to a specific version of crewai (0.114.0) from GitHub repo.

Screenshots/Code snippets

Cannot share (internal to my company)

Operating System

Other (specify in additional context)

Python Version

3.10

crewAI Version

0.120.0

crewAI Tools Version

NA

Virtual Environment

Conda

Evidence

You can try it yourself. It’s few lines of code.

Possible Solution

Investigate the difference between the 0.120.0 and 0.114.0

Additional context

Also tried on AWS SageMaker and the same problem occurred

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions