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

[Bug] Ollama tool choice #2099

Closed
Jayke770 opened this issue Feb 12, 2025 · 9 comments · May be fixed by #2109
Closed

[Bug] Ollama tool choice #2099

Jayke770 opened this issue Feb 12, 2025 · 9 comments · May be fixed by #2109
Labels
bug Something isn't working

Comments

@Jayke770
Copy link

Description

Briefly describe the issue you’re experiencing or the bug you’ve found.

Steps to Reproduce

List the steps needed to encounter this bug or issue.

Agent Configuration (if applicable)

Provide relevant agent configuration.

Expected Behavior

What did you expect to happen?

Actual Behavior

What actually happened instead?

Screenshots or Logs (if applicable)

Image

Environment

  • OS: (e.g. macOS, Windows 11)
  • Browser (if relevant): (e.g. Chrome 108, Firefox 107)
  • Agno Version: (e.g. v1.0.0)
  • External Dependency Versions: (e.g., yfinance 0.2.52)
  • Additional Environment Details: (e.g., Python 3.13)

Possible Solutions (optional)

Suggest any ideas you might have to fix or address the issue.

Additional Context

Add any other context or details about the problem here.

@Jayke770 Jayke770 added the bug Something isn't working label Feb 12, 2025
@anuragts
Copy link
Contributor

Hey @Jayke770 Can you provide your agent config code, so we can replicate this issue.

@Jayke770
Copy link
Author

Hey @Jayke770 Can you provide your agent config code, so we can replicate this issue.

Image

@Jayke770
Copy link
Author

but when I remove the tool_choice, works fine now

@dirkbrnd
Copy link
Contributor

We are looking into it!

@dirkbrnd
Copy link
Contributor

@Jayke770 from what I can see Ollama doesn't support tool choice. This is our mistake as well to send it on to them. I will remove this until they add support for it.

@Jayke770
Copy link
Author

@Jayke770 from what I can see Ollama doesn't support tool choice. This is our mistake as well to send it on to them. I will remove this until they add support for it.

But my agent can use the tool without the tool_choice

@dirkbrnd
Copy link
Contributor

@Jayke770 that is correct, you just can't force the tool use with tool_choice.

@dirkbrnd
Copy link
Contributor

Does that work for you? If so, I can close the issue.

@Jayke770
Copy link
Author

Does that work for you? If so, I can close the issue.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants