You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon the next prompt (after the empty one), we get an error message:
ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 400 Bad Request. Message: * GenerateContentRequest.contents[0].parts: contents.parts must not be empty.
at crates/goose/src/agents/truncate.rs:279
Based on the log, the error is identified at crates/goose/src/agents/truncate.rs:279, suggesting the error is on the server side where the request is not properly validated for empty content before processing.
I have only tested models gemini-2.0-flash-exp and gpt-4o. The gemini one has this problem, the gpt-4o one works fine.
The text was updated successfully, but these errors were encountered:
Describe the bug
Upon the next prompt (after the empty one), we get an error message:
I put a sample interaction in the following log file: error_when_empty_prompt.log
To Reproduce
Expected behavior
The system should handle empty prompts gracefully.
Screenshots
(Not applicable as it's a CLI-based interaction).
Please provide following information:
Additional context
Based on the log, the error is identified at
crates/goose/src/agents/truncate.rs:279
, suggesting the error is on the server side where the request is not properly validated for empty content before processing.I have only tested models gemini-2.0-flash-exp and gpt-4o. The gemini one has this problem, the gpt-4o one works fine.
The text was updated successfully, but these errors were encountered: