-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat: add Show Debug Thoughts option for LM Studio provider #8141
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
feat: add Show Debug Thoughts option for LM Studio provider #8141
Conversation
- Add lmStudioShowDebugThoughts field to provider settings schema - Implement reasoning output handling in LM Studio provider - Add UI checkbox for enabling/disabling debug thoughts display - Add localization for English and Russian languages - Feature allows users to see model reasoning output when supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! I've reviewed the changes and found several issues that need attention before this can be merged.
- Implemented a conditional check to display reasoning output in the UI when debug thoughts are enabled. - Updated localization files to include new settings for showing debug thoughts in multiple languages. - This feature allows users to view model reasoning output, enhancing transparency and debugging capabilities.
|
Hey @loject, thank you for your contribution! Does it make sense to just enable reasoning for LM Studio? We already show reasoning for every other provider; it makes sense to do it here. |
|
@daniel-lxs hi! |
Related GitHub Issue
Closes: #8140
Roo Code Task Context (Optional)
Description
This PR adds a "Show Debug Thoughts" feature for the LM Studio provider to help users detect infinite reasoning loops in open-source models like oss-gpt-20b.
Key implementation details:
lmStudioShowDebugThoughtsboolean field to the provider settings schema with proper Zod validationReviewers should pay attention to:
src/api/providers/lm-studio.tslines 123-133<think>tags vs new reasoning fieldTest Procedure
Manual Testing Steps:
Automated Testing:
Pre-Submission Checklist
Screenshots / Videos
Before: LM Studio settings without debug thoughts option
After: LM Studio settings with new "Show Debug Thoughts" checkbox and description
Screenshots will be provided once the PR is ready for submission
Documentation Updates
Documentation needs:
Additional Notes
<think>tags (always processed) and the new reasoning field (conditionally displayed)Get in Touch
Discord: loject
Important
Adds 'Show Debug Thoughts' feature to LM Studio provider, including schema, UI, and localization updates.
lmStudioShowDebugThoughtsboolean field to provider settings schema inprovider-settings.ts.LmStudioHandlerinlm-studio.tsto display reasoning output whenlmStudioShowDebugThoughtsis enabled.LMStudio.tsxwith label and description.settings.jsonforru,tr,vi,zh-CN, andzh-TW.This description was created by
for 61b108f. You can customize this summary. It will automatically update as commits are pushed.