Skip to content

Add reasoning support for custom models. #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RahulVerma989 opened this issue Apr 13, 2025 · 1 comment
Open

Add reasoning support for custom models. #492

RahulVerma989 opened this issue Apr 13, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@RahulVerma989
Copy link

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'}}
@RahulVerma989 RahulVerma989 added the enhancement New feature or request label Apr 13, 2025
@rm-openai
Copy link
Collaborator

Makes sense. Can you provide some sample code that shows how the custom model accepts reasoning parms? e.g. a curl or some sample python/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants