-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Gemini 2.5 Pro throws 400 Bad Request for any prompt due to url.format validation — works fine with GPT-4 (Goose v1.1.4) #3770
Description
Describe the bug
When using the Gemini 2.5 Pro model in Goose (v1.1.4 on Windows), I receive the following error on every single prompt, even basic ones like "Hi" or "Hello":
pgsql
Copy
Edit
Request failed: Request failed with status: 400 Bad Request.
Message: * GenerateContentRequest.tools[0].function_declarations[20].parameters.properties[url].format: only 'enum' and 'date-time' are supported for STRING type
This issue does not occur when using GPT-4 or other OpenAI models with the same prompt and extension configuration. The error appears to originate from a tool/function being registered with a parameter named url using an invalid format.
To Reproduce
Steps to reproduce the behavior:
Use Goose v1.1.4 on Windows
Enable extensions: Computer Controller, Developer, Fetch, Pdfreader, Tutorial, and Memory (see screenshot)
Select Gemini 2.5 Pro as provider/model
Type any prompt (e.g., "Hi")
Observe error: 400 Bad Request with message related to .parameters.properties[url].format
Expected behavior
Prompt should be processed normally. The Gemini model should return a response without error, as it does in other apps or via direct API access.
Screenshots
Error message screenshot
Enabled extensions screenshot
Please provide following information:
OS & Arch: Windows 11 x64
Interface: UI
Version: Goose v1.1.4
Extensions enabled: Computer Controller, Developer, Fetch, Pdfreader, Tutorial, Memory
Provider & Model: Google - gemini-2.5-pro
Other provider tested: OpenAI - gpt-4 (✅ works fine)
Additional context
This appears to be a schema validation issue specific to Gemini 2.5, which enforces stricter rules for function/tool parameters. It seems Goose or one of the enabled extensions is registering a tool with a parameter that includes:
"url": {
"type": "string",
"format": "url" // ❌ not allowed by Gemini 2.5
}
Only format: "enum" or format: "date-time" are supported on string types by Gemini. This needs to be stripped or replaced to ensure compatibility.
Please advise on a fix or patch. Happy to help test or dig deeper if needed.
