-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Handle extended thinking with Anthropic provider, process streaming thinking blocks and show them in the output tab #4426
base: main
Are you sure you want to change the base?
Conversation
…seLLM` and `Anthropic` classes
✅ Deploy Preview for continuedev canceled.
|
ThinkingChatMessage
interface and handle thinking chunks in BaseLLM
and Anthropic
classes
Would it be possible to add the same support to Bedrock.ts now that I have enabled tools support, and have a seprate PR to enable claude 3.7 on bedrock as well? |
@chezsmithy I have just sent a PR that does the same with Bedrock: #4444 |
Deep Research would be a killer-feature in this coding assistant Continue, it's possible to have Perplexity API Key too ? |
Description
This modification allows users to see the human-readable parts of the thinking blocks in the LLM output.
This simple change is a first step on the way of full implementation of handling thinking blocks.
Checklist
Screenshots
[ For visual changes, include screenshots. ]

Testing instructions
Thinking can be enabled in config this way:
Watch the Continue - LLM Prompt/Completion output tab.
Next steps
The thinking mode doesn't currently work with tool use. The software should add the
thinking
andredacted_thinking
blocks to the conversation history when sending subsequent requests. Tool use requires this, with no tool use, any thinking blocks will be ignored.human-readable thinking blocks could be added to the UI in form of collapsible boxes. This is an example from TypingMind:
Edit
Handling thinking blocks and redacted_thinking blocks have been added. Due to these changes, these thinking blocks have also became visible. This may require some visual update, but it's now accessible and functional, and we are closer to a final solution where users can read the thinking blocks if they want.
Additional testing instructions
The changes are working if you can call tools with no problem.
Redacted thinking can be tested by adding this string in your first prompt:
ANTHROPIC_MAGIC_STRING_TRIGGER_REDACTED_THINKING_46C9A13E193C177646C7398A98432ECCCE4C1253D5E2D82641AC0E52CC2876CB
Edit 2
I have added rendering of thinking blocks as shown in the screenshots below: