Skip to content

⚙️ docs: Document interface.resetMaxContextTokensOnModelSwitch - #907

Open
MarcAmick wants to merge 1 commit into
LibreChat-AI:mainfrom
MarcAmick:enchacement-optionally-clear-maxcontexttokens-when-selecting-new-model-to-force-defaulting-to-models-maxcontext-tokens
Open

MarcAmick wants to merge 1 commit into
LibreChat-AI:mainfrom
MarcAmick:enchacement-optionally-clear-maxcontexttokens-when-selecting-new-model-to-force-defaulting-to-models-maxcontext-tokens

Conversation

@MarcAmick

Copy link
Copy Markdown
Contributor

Summary

Documents the new interface.resetMaxContextTokensOnModelSwitch option in the interface object structure page:

  • Adds the key to the field list and the full example config
  • Adds a dedicated section covering the type, default (false), behavior notes, and a YAML example

When enabled, a conversation's saved Max Context Tokens is cleared when the user switches to a different endpoint, model, or agent, so the next turn uses the new model's default context window. A preset or model spec that sets its own maxContextTokens still takes precedence.

Related

🤖 Generated with Claude Code

Adds the `resetMaxContextTokensOnModelSwitch` interface option, which clears a
conversation's saved Max Context Tokens when switching endpoint, model, or
agent so the new model's default context window applies.

Refs LibreChat-AI/LibreChat#17732, LibreChat-AI/LibreChat#17734

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the LibreChat's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant