Unrecognized key: "limit" provider.llama.cpp #3313

Closed
opened 2026-02-16 17:39:37 -05:00 by yindo · 4 comments
Owner

Originally created by @strk on GitHub (Dec 4, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Following the instructions in https://opencode.ai/docs/providers/#llamacpp I get an error:

$ opencode
Config file at /home/strk/.config/opencode/opencode.json is invalid
↳ Unrecognized key: "limit" provider.llama.cpp

OpenCode version

1.0.132

Steps to reproduce

  1. Copy the configuration from https://opencode.ai/docs/providers/#llamacpp
  2. Run opencode

Screenshot and/or share link

No response

Operating System

Debian 13

Terminal

Kitty

Originally created by @strk on GitHub (Dec 4, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Following the instructions in https://opencode.ai/docs/providers/#llamacpp I get an error: ``` $ opencode Config file at /home/strk/.config/opencode/opencode.json is invalid ↳ Unrecognized key: "limit" provider.llama.cpp ``` ### OpenCode version 1.0.132 ### Steps to reproduce 1. Copy the configuration from https://opencode.ai/docs/providers/#llamacpp 2. Run opencode ### Screenshot and/or share link _No response_ ### Operating System Debian 13 ### Terminal Kitty
yindo added the bug label 2026-02-16 17:39:37 -05:00
yindo closed this issue 2026-02-16 17:39:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 4, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #855: Unrecognized key(s) binds - Similar unrecognized key validation errors in config
  • #1250: OpenCode crashes when adding log_level to the configuration - Config file validation issues with unrecognized keys
  • #1081: Cannot read newer opencode.json schema properties if opencode has not been updated - Related to schema version mismatches causing unrecognized key errors
  • #3556: opentui: config unrecognized keys - Multiple unrecognized keys in keybinds configuration
  • #3630: 1.0.2 - model_cycle_recent action is now missing - Missing action in keybinds
  • #1416: How do I change the scroll speed? - Unrecognized key 'scroll_speed'

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 4, 2025): This issue might be a duplicate of existing issues. Please check: - #855: Unrecognized key(s) binds - Similar unrecognized key validation errors in config - #1250: OpenCode crashes when adding log_level to the configuration - Config file validation issues with unrecognized keys - #1081: Cannot read newer opencode.json schema properties if opencode has not been updated - Related to schema version mismatches causing unrecognized key errors - #3556: opentui: config unrecognized keys - Multiple unrecognized keys in keybinds configuration - #3630: 1.0.2 - model_cycle_recent action is now missing - Missing action in keybinds - #1416: How do I change the scroll speed? - Unrecognized key 'scroll_speed' Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 4, 2025):

@strk we need to fix the docs just move that limit block up 1 level under the model definition

@rekram1-node commented on GitHub (Dec 4, 2025): @strk we need to fix the docs just move that limit block up 1 level under the model definition
Author
Owner

@rekram1-node commented on GitHub (Dec 4, 2025):

/oc use the docs agent to fix this example

@rekram1-node commented on GitHub (Dec 4, 2025): /oc use the docs agent to fix this example
Author
Owner

@opencode-agent[bot] commented on GitHub (Dec 4, 2025):

Created PR #5089

New%20session%20-%202025-12-05T00%3A18%3A23.903Z
opencode session  |  github run

@opencode-agent[bot] commented on GitHub (Dec 4, 2025): Created PR #5089 <a href="https://opencode.ai/s/3y7GvmCJ"><img width="200" alt="New%20session%20-%202025-12-05T00%3A18%3A23.903Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI1LTEyLTA1VDAwOjE4OjIzLjkwM1o=.png?model=opencode/claude-haiku-4-5&version=1.0.133&id=3y7GvmCJ" /></a> [opencode session](https://opencode.ai/s/3y7GvmCJ)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/19948248066)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3313