* 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. |
||
|---|---|---|
| .. | ||
| agents | ||
| autocomplete | ||
| chat | ||
| checks | ||
| cli | ||
| customize | ||
| getting-started | ||
| guides | ||
| ide-extensions | ||
| images | ||
| logo | ||
| mission-control | ||
| reference | ||
| snippets | ||
| .prettierignore | ||
| c15t-cookie-banner.js | ||
| CONTRIBUTING.mdx | ||
| custom.css | ||
| docs.json | ||
| faqs.mdx | ||
| favicon.png | ||
| home.mdx | ||
| index.mdx | ||
| overview.mdx | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| reference.mdx | ||
| reo-tracking.js | ||
| troubleshooting.mdx | ||
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 updateto 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