Skip to content

Add reasoning support for custom models. #492

Open
@RahulVerma989

Description

@RahulVerma989

Currently below gives an error when using groq's deepseek r1 model. Although it works fine if I don't pass reasoning in ModelSettings. Just that I don't receive any reasoning content of the model.

return Agent(
            name="Agent",
            instructions="You are Json, an helpful agent that can delegate complex tasks to other agents.,
            handoff_description="Handoff to me.",
            model=OpenAIChatCompletionsModel(model=model, openai_client=client),
            model_settings=ModelSettings(
                reasoning=Reasoning(
                    effort="high"
                )
            ),
            hooks=self.hooks,
        )

Error Message:

{'error': {'message': "property 'reasoning_effort' is unsupported, did you mean 'reasoning_format'?", 'type': 'invalid_request_error'}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions