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
failed to send message: POST "http://127.0.0.1:53737/session/ses_7fcdb17a2ffeA A8MIzJJs741C/message": 400 Bad Request {"name":"UnknownError","data":{"message":"TypeErro r: undefined is not an object (evaluating 'U0.tokens.input')"}} #942
I m getting same issue when trying to hook it up to a local model via LMStudio.
Tested methods:
* Deleted the .config/opencode and .cache/opencode and restarted couple of times.
Below is the opencode.json for the same. { "$schema": "https://opencode.ai/config.json", "provider": { "lmstudio": { "npm": "@ai-sdk/openai-compatible", "name": "LM Studio (local)", "options": { "baseURL": "http://127.0.0.1:1234/v1" }, "models": { "lm-studio/phi-3-mini-4k-instruct": { "name": "phi-3-mini-4k-instruct" } } } } }
For local LLMs , it usually means that the input is greater than the context window (Do check LMStudio server logs). The system prompt along with other prompts might be exceeding your context window. Default 4k context window is too low.
Activity
rahul-s-bhatt commentedon Jul 13, 2025
I m getting same issue when trying to hook it up to a local model via LMStudio.
Tested methods:
Below is the opencode.json for the same.
{ "$schema": "https://opencode.ai/config.json", "provider": { "lmstudio": { "npm": "@ai-sdk/openai-compatible", "name": "LM Studio (local)", "options": { "baseURL": "http://127.0.0.1:1234/v1" }, "models": { "lm-studio/phi-3-mini-4k-instruct": { "name": "phi-3-mini-4k-instruct" } } } } }adityaagarw commentedon Jul 26, 2025
For local LLMs , it usually means that the input is greater than the context window (Do check LMStudio server logs). The system prompt along with other prompts might be exceeding your context window. Default 4k context window is too low.
blackhaj commentedon Jul 31, 2025
I had the same issue. Jacking up the context length fixed it:
blackhaj commentedon Jul 31, 2025
That said, I still get other errors. It does input a response before throwing the error at least
yagil commentedon Aug 1, 2025
Hey! We have fixes to this in the latest beta: https://lmstudio.ai/beta-releases
jayair commentedon Aug 2, 2025
nice @yagil
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
improve den first-run flow and remove transient marketing UI (anomaly…