Skip to content

Make to_messages methods compatible with qwen vl #1148

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

Merged
merged 9 commits into from
Apr 7, 2025

Conversation

aymeric-roucher
Copy link
Collaborator

No description provided.

@aymeric-roucher aymeric-roucher force-pushed the make-model-calling-compatible-qwen-vl branch 2 times, most recently from d2526e7 to 5831a62 Compare April 4, 2025 18:04
@aymeric-roucher aymeric-roucher force-pushed the make-model-calling-compatible-qwen-vl branch from 5831a62 to e5a116e Compare April 4, 2025 18:27
Copy link
Member

@albertvillanova albertvillanova left a comment

Choose a reason for hiding this comment

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

Thanks.

@@ -162,7 +164,7 @@ def create_agent_hierarchy(model: Model):
max_steps=12,
verbosity_level=2,
additional_authorized_imports=AUTHORIZED_IMPORTS,
planning_interval=4,
# planning_interval=4,
Copy link
Member

Choose a reason for hiding this comment

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

Do we no longer need any planning step?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I rolled this change back!

@@ -32,6 +32,7 @@

from smolagents import (
CodeAgent,
GoogleSearchTool,
Copy link
Member

Choose a reason for hiding this comment

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

If you change the available tools, then you should run again for all previous models so their results are comparable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the same behavior as before: making a call to Serper.dev or Serpapi depending on the user choice. It simply uses our built-in tool instead of the one implemented in the custom SimpleTextBrowser, which makes it better supported.

aymeric-roucher and others added 2 commits April 7, 2025 10:48
Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>
@aymeric-roucher aymeric-roucher merged commit 05ccd4c into main Apr 7, 2025
4 checks passed
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.

2 participants