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
{{ message }}
Repository navigation
Reproducible AI_APICallError: Bad Request on a particular repo and prompt #3017
I can't run certain types of tasks on the repo https://github.com/Jimver/cuda-toolkit with grok-code-fast-1. I keep getting AI_APICallError: Bad Request after a thinking. Haven't experienced this on any other repos with opencode + grok-code-fast-1. It does succeed on simple questions in plan mode like Give me a high-level overview of the project. And this prompt does not fail on other repos.
AI_APICallError: Bad Request Open Router #494: AI_APICallError: Bad Request Open Router - Similar Bad Request error occurring after search operations, though with OpenRouter provider instead of grok-code-fast-1
Feel free to ignore if none of these address your specific case.
@tbarron-xyz I think I might have a solution, noticed that the model tries to get data from your massive files such as the dist and the .licenses folders, so try creating a local opencode.json and add the following there.
Activity
github-actions commentedon Oct 7, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 7, 2025
@tbarron-xyz do you have any mcp servers by chance? Just curious what could cause this.. Ill try to reproduce when I get a chance later today
tbarron-xyz commentedon Oct 7, 2025
@rekram1-node No MCP servers, my ~/.config/opencode is an empty folder. Pretty much virgin opencode with grok-code-fast-1.
OpeOginni commentedon Oct 7, 2025
@tbarron-xyz what provider are you using?
tbarron-xyz commentedon Oct 7, 2025
It's in the second and third screenshots - opencode zen.
OpeOginni commentedon Oct 7, 2025
@tbarron-xyz I think I might have a solution, noticed that the model tries to get data from your massive files such as the
distand the.licensesfolders, so try creating a localopencode.jsonand add the following there.{ "$schema": "https://opencode.ai/config.json", "watcher": { "ignore": [".devcontainer", ".vscode", "licenses", "dist"] } }After doing this, I tested the commands you gave and they worked well on your repo.
Image
Details
rekram1-node commentedon Oct 7, 2025
damn what a g thx @OpeOginni