-
Notifications
You must be signed in to change notification settings - Fork 61
adjust reasoning level options based on models #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
PR Type
Enhancement
Description
Dynamically adjust reasoning level options based on selected model capabilities
Add support for additional reasoning effort levels (none, xhigh)
Update reasoning level label and automatically reset invalid selections
Trigger model change handler when provider or model selection changes
Diagram Walkthrough
File Walkthrough
chat-config.svelte
Dynamic reasoning level options based on modelsrc/routes/page/agent/[agentId]/agent-components/llm-configs/chat-config.svelte
reasonLevelOptionstodefaultReasonLevelOptionsand made it areactive variable
reasoningLevelOptionsonModelChanged()function to update reasoning level options whenmodel changes
getReasoningLevelOptions()function to extract model-specificreasoning effort levels from model configuration
onModelChanged()in provider and model change handlers todynamically update available options
invalid for new model
enums.js
Add none and xhigh reasoning effort levelssrc/lib/helpers/enums.js
None: "none"option to reasoning effort levelsXHigh: "xhigh"option to reasoning effort levels