Skip to content

How to make a LiteLLM models run in Reasoning mode #671

Closed as not planned
Closed as not planned
@LuSrodri

Description

@LuSrodri

How to make the LiteLLM models run in Reasoning mode?
I saw that exists the reasoning prop, but it doesn't clear to use...

model = LitellmModel(model="gemini/gemini-2.5-pro-preview-05-06", api_key=GEMINI_API_KEY)

agent= Agent[Context](
        name="An Agent",
        model=gemini_model,
        instructions=f"""
           Useful Agent
        """,
        model_settings=ModelSettings(tool_choice="auto", reasoning="????")
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about using the SDKstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions