#987 This means that this issue is not solved?
Describe the bug
#987 This means that this issue is not solved?
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
working session after fhis command
(
GOOSE_PROVIDER=openrouter
GOOSE_MODEL=openai/gpt-4o-mini
RUST_BACKTRACE=1
goose session --with-builtin developer
)
not working session after this command
(
GOOSE_PROVIDER=openrouter
GOOSE_MODEL=google/gemini-2.0-flash-thinking-exp:free
RUST_BACKTRACE=1
goose session --with-builtin developer
)
ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 404 Not Found
at crates/goose/src/agents/truncate.rs:372
Ran into this error: Request failed: Request failed with status: 404 Not Found.
Please retry if you think this is a transient or recoverable error.
Expected behavior session goes well
@PorcoRosso85 can you share the prompt you use? And which version are you using?
This is the same issue that's been plaguing goose since 1.0.1 (and potentially earlier). The error is misleading, because it's a context size issue due to overloading the size of the API. Goose needs to be smarter about the size of the interaction, whether it's 32k or 200k or whatever the API / AI allows. #899 #1303 and several other issues are basically exactly this same truncate issue.
version 1.0.10
The model is provided now. https://openrouter.ai/google/gemini-2.0-flash-thinking-exp:free
RUST_BACKTRACE=1 GOOSE_PROVIDER=openrouter GOOSE_MODEL=google/gemini-2.0-flash-thinking-exp:free goose run --with-builtin developer --text "just say hi"
starting session | provider: openrouter model: google/gemini-2.0-flash-thinking-exp:free
logging to /home/nixos/.local/share/goose/sessions/zV0ZeO5c.jsonl
2025-03-26T07:53:00.571262Z ERROR goose::agents::truncate: Error: Request failed: Request failed with status: 404 Not Found
at crates/goose/src/agents/truncate.rs:372
Ran into this error: Request failed: Request failed with status: 404 Not Found.
Please retry if you think this is a transient or recoverable error.
@PorcoRosso85 can you try with the latest version?
I think the problem is that google/gemini-2.0-flash-thinking-exp:free doesn't support tool,
404 Not Found. Message: No endpoints found that support tool use. To learn more about provider routing, visit: https://openrouter.ai/docs/provider-routing.