continue-custom/gui
Dallin Romney d6259a7304
fix: respect contextLength from YAML model config (#11807)
* fix: respect contextLength from YAML model config

Three fixes for contextLength not being respected:

1. Add contextLength to YAML model schema at the model level (not just
   inside defaultCompletionOptions), matching JSON config behavior
2. Read contextLength from both model-level and defaultCompletionOptions,
   with model-level taking precedence
3. Fix GUI selector fallback using DEFAULT_MAX_TOKENS (4096) instead of
   DEFAULT_CONTEXT_LENGTH (32768)

Closes #4638
Closes #4304

* fix: reduce complexity in modelConfigToBaseLLM

Replace find callbacks with includes() to offset complexity from
contextLength nullish coalescing.

* docs: document contextLength at model level in config.yaml reference

* docs: consistently show contextLength in defaultCompletionOptions for YAML

YAML examples use defaultCompletionOptions.contextLength, JSON examples
use model-level contextLength. Also fixes ollama guide using the wrong
key name (completionOptions -> defaultCompletionOptions).

* refactor: extract env options into helper to reduce complexity

Extract the repetitive env-to-options mapping from modelConfigToBaseLLM
into a separate applyEnvOptions function, bringing complexity well under
the limit of 36.
2026-03-25 12:26:52 -07:00
..
public feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00
src fix: respect contextLength from YAML model config (#11807) 2026-03-25 12:26:52 -07:00
.eslintrc.json remove all barrel extensions 2025-06-19 13:42:43 -07:00
.gitignore feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
index.html chore: prettier bulk apply in gui 2024-11-10 21:45:13 -08:00
indexConsole.html Add rich logging of LLM interactions 2025-04-07 14:11:38 -04:00
package-lock.json Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
package.json Update Node.js LTS to v20.20.1 (#11506) 2026-03-24 11:36:07 -07:00
postcss.config.cjs chore: prettier bulk apply in gui 2024-11-10 21:45:13 -08:00
README.md ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
rules.md chore: hub.continue.dev -> continue.dev 2026-01-30 15:47:00 -08:00
tailwind.config.cjs dallins feedback 2025-09-09 00:54:09 -07:00
tsconfig.json typescript rectification 2025-03-24 21:05:38 -07:00
tsconfig.node.json ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
vite.config.ts feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00

Continue React App

The Continue React app is a notebook-like interface to the Continue server. It allows the user to submit arbitrary text input, then communicates with the server to takes steps, which are displayed as a sequence of editable cells. The React app should sit beside an IDE, as in the VS Code extension.