Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

MagMueller
Copy link
Collaborator

@MagMueller MagMueller commented Sep 8, 2025

Auto-generated PR for: make reasoning_models a parameter


Summary by cubic

Made reasoning_models configurable on ChatOpenAI so users can control which models are treated as “reasoning” models. Defaults to the previous list, so behavior is unchanged unless overridden.

  • New Features
    • Added reasoning_models parameter with the prior default values.
    • ainvoke now checks self.reasoning_models to set reasoning_effort and drop temperature/frequency_penalty when matched.

Updated the condition for checking reasoning_models to ensure it only evaluates if reasoning_models is not empty, improving code robustness.
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file

React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Changed the initialization of reasoning_models to use a default factory with field(), enhancing clarity and maintainability of the code.
@MagMueller MagMueller merged commit 0e4c3ef into main Sep 8, 2025
54 checks passed
@MagMueller MagMueller deleted the make-reasoningmodels-a-parameter branch September 8, 2025 05:30
Copy link

github-actions bot commented Sep 8, 2025

Agent Task Evaluation Results: 2/4 (50%)

View detailed results
Task Result Reason
amazon_laptop ✅ Pass The agent successfully navigated to amazon.com, searched for 'laptop', and returned the name and details of the first laptop result as requested. The output includes the product title, price, rating, and number of reviews, fulfilling the task requirements.
google_maps_3d ✅ Pass The agent correctly navigated to www.google.com/maps, searched for ETH Zurich Hauptgebäude, closed the side panel to maximize the map view, switched to Satellite View if it was not already enabled, activated 3D mode by clicking the appropriate button, and panned the map so that both ETH Zurich Hauptgebäude and Zurich Lake were clearly visible. The agent also took a screenshot as requested. All specified criteria were met successfully.
browser_use_pip ❌ Fail The agent correctly identified that there is no direct 'pip install browser-use' command available in the repository documentation. Instead, installation requires building a wheel locally and installing it via a different tool. Since the task specifically required finding the 'pip install browser-use' command, and none exists, the agent's output does not meet the success criteria.
captcha_cloudflare ❌ Fail The agent was unable to locate and interact with the Cloudflare Turnstile captcha widget on the demo page, and therefore could not solve the captcha or click the 'Check' button. As a result, it did not extract the 'hostname' value from the success message dictionary. The task requirements were not met.

Check the evaluate-tasks job for detailed task execution logs.

qizwiz added a commit to qizwiz/browser-use that referenced this pull request Sep 16, 2025
- Replace hardcoded ReasoningModels import with configurable self.reasoning_models
- Add fallback to default reasoning models list for backward compatibility
- Align with MagMueller's PR browser-use#3010 that makes reasoning_models configurable

This change ensures compatibility with the latest changes in the codebase while
maintaining the same Azure-specific parameter filtering functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant