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

Unable to use Fetch extension with Gemini #1184

Open
angiejones opened this issue Feb 11, 2025 · 1 comment
Open

Unable to use Fetch extension with Gemini #1184

angiejones opened this issue Feb 11, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@angiejones
Copy link
Collaborator

Describe the bug
When configured to use Google models, specifically gemini-2.0-flash-exp, an error occurs when attempting to use the Fetch extension:

Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.tools[0].function_declarations[22].parameters.properties[url].format: only 'enum' is supported for STRING type .
Please retry if you think this is a transient or recoverable error.

This happens because Fetch uses format: uri in its JSON schema which Google doesn't support.

To Reproduce
Steps to reproduce the behavior:

  1. Configure Goose to use a Gemini LLM
  2. Enable built-in Fetch extension
  3. Prompt Goose to fetch data from the web

Expected behavior
With other LLMs, Goose is able to successfully fetch data from the web

Screenshots

Image

Please provide following information:

  • OS & Arch: macOS M2 Max
  • Interface: CLI and UI
  • Version: 1.0.5
  • Extensions enabled: Fetch
  • Provider & Model: Google - gemini-2.0-flash-exp
@angiejones angiejones added the bug Something isn't working label Feb 11, 2025
@DefiBax
Copy link

DefiBax commented Feb 13, 2025

it may be prudent to refactor the bug to extend it to any gemini-2.0-flash based tool, not just the -exp flag

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

No branches or pull requests

2 participants