continue-custom/docs
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
..
agents fix: update broken Mission Control workflows links (#10661) 2026-03-10 11:08:09 -07:00
autocomplete docs: fix title case in documentation headers 2026-01-14 19:00:37 -08:00
chat docs: fix remaining 6 broken links with special char anchors 2026-02-17 17:47:58 -08:00
checks Add workflow section to running-locally docs (#11046) 2026-03-04 23:33:51 -08:00
cli docs: document all CLI slash commands in TUI mode (#11352) 2026-03-19 16:20:37 -07:00
customize fix: respect contextLength from YAML model config (#11807) 2026-03-25 12:26:52 -07:00
getting-started fix: update assistants -> configs in docs 2025-11-18 12:39:30 -08:00
guides fix: respect contextLength from YAML model config (#11807) 2026-03-25 12:26:52 -07:00
ide-extensions docs: fix remaining 6 broken links with special char anchors 2026-02-17 17:47:58 -08:00
images images 2026-02-17 17:19:21 -08:00
logo s/docs2/docs 2025-07-10 13:34:36 -07:00
mission-control fix: update broken Mission Control workflows links (#10661) 2026-03-10 11:08:09 -07:00
reference docs: fix remaining 6 broken links with special char anchors 2026-02-17 17:47:58 -08:00
snippets fix(gemini): update model catalog for retired/new Gemini models (#11793) 2026-03-24 20:22:47 -07:00
.prettierignore s/docs2/docs 2025-07-10 13:34:36 -07:00
c15t-cookie-banner.js fix: prettier 2025-07-30 07:56:52 -07:00
CONTRIBUTING.mdx Merge remote-tracking branch 'origin/main' into nate/simplify-docs 2026-01-30 18:29:04 -08:00
custom.css docs: restructure checks section and update docs content 2026-02-16 23:16:52 -08:00
docs.json feat: add Tensorix as an LLM provider (#11184) 2026-03-19 16:29:45 -07:00
faqs.mdx Remove Gemini 2.0 Flash from defaults and update Claude defaults to 4.6 (#11782) 2026-03-24 17:03:52 -07:00
favicon.png update favicon 2025-11-25 12:40:35 -08:00
home.mdx chore: hub.continue.dev -> continue.dev 2026-01-30 15:47:00 -08:00
index.mdx docs: simplify quickstart to continue.dev/check 2026-02-19 17:08:14 -08:00
overview.mdx fix: update broken Mission Control workflows links (#10661) 2026-03-10 11:08:09 -07:00
package-lock.json [Snyk] Security upgrade @c15t/react from 1.8.2 to 1.8.5 (#11388) 2026-03-13 12:15:46 -07:00
package.json [Snyk] Security upgrade @c15t/react from 1.8.2 to 1.8.5 (#11388) 2026-03-13 12:15:46 -07:00
README.md feat: GEO updates for docs (#7083) 2025-08-14 21:20:59 +01:00
reference.mdx fix: add keepAlive to YAML completion options schema (#11801) 2026-03-25 10:29:14 -07:00
reo-tracking.js Add Reo.dev tracking infrastructure for documentation (#8672) 2025-11-13 11:10:10 -08:00
troubleshooting.mdx docs: improve SSL certificate troubleshooting guidance (#11354) 2026-03-19 15:50:18 -07:00

Mintlify Starter Kit

Click on Use this template to copy the Mintlify starter kit. The starter kit contains examples including

  • Guide pages
  • Navigation
  • Customizations
  • API Reference pages
  • Use of popular components

Development

Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command

npm i -g mint

Run the following command at the root of your documentation (where docs.json is)

mint dev

Publishing Changes

Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.

Troubleshooting

  • If the dev environment isn't running - Run mint update to ensure you have the most recent version of the CLI.
  • Page loads as a 404 - Make sure you are running in a folder with docs.json