opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Unrecognized key: "limit" provider.llama.cpp

Open strk opened this issue 1 month ago • 4 comments

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

strk avatar Dec 04 '25 23:12 strk

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] avatar Dec 04 '25 23:12 github-actions[bot]

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

rekram1-node avatar Dec 05 '25 00:12 rekram1-node

/oc use the docs agent to fix this example

rekram1-node avatar Dec 05 '25 00:12 rekram1-node

Created PR #5089

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

opencode-agent[bot] avatar Dec 05 '25 00:12 opencode-agent[bot]