Skip to content
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

fix #409: handle string input for num_results in google search and st… #524

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mephistoc
Copy link

@mephistoc mephistoc commented Mar 12, 2025

Features
Fix issue #409
#409

  • Fix issue when using tool of Google Search with Ollama local service.
  • Error message: '<' not supported between instances of 'int' and 'str'

Feature Docs
Seems the issue cause by type mismatch when using Ollama on local service.
OpenAI and Claude API runs well with Google Search tool, only happens when using local Ollama service with llama 3.3 model (I only tried llama 3.3, not sure if other model also have the same issue).

Code Change
image

Influence
Only effect to Google Search tool only, I guess?

Result
image

Other
This is my first PR, please let me know if there is anything needs to be correct.

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