-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(completions): add support for thinking steps in completion respo…
…nses This change adds support for streaming thinking steps in completion responses, allowing Cody to show its reasoning process while generating responses. The thinking steps are wrapped in XML tags and displayed in a collapsible UI element. Key changes: - Add thinking buffer and handling in CompletionsResponseBuilder - Update UI to show thinking steps in a collapsible details element - Process delta_thinking in completion response parsing - Increase supported API versions up to v8 - Update types to include thinking-related fields The thinking steps are designed to appear at the beginning of completions and are properly formatted with XML tags for consistent display. Test plan: - Verify thinking steps appear in a collapsible UI element - Confirm proper handling of both complete and incomplete think tags - Test streaming behavior with thinking steps - Validate backwards compatibility with older API versions
- Loading branch information
Showing
5 changed files
with
63 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters