fix claude 3.7 think enhance prompt problem. #1444
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Fixed the issue that [Prompt Word Enhancement] cladue non-streaming call failed
Implementation
Screenshots
before:
after:
No errors, successful execution of prompt word enhancements using Claude 3.7 Think
How to Test
Use the Claude 3.7 Think model to perform prompt word enhancements
Get in Touch
moqi
Important
Fixes non-streaming call issue for Claude 3.7 in
completePrompt()by adjusting token handling and removingthinkingparameter.completePrompt()inanthropic.tsby settingmax_tokenstoANTHROPIC_DEFAULT_MAX_TOKENSand removingthinkingparameter.maxTokensexceeds 21333 due to Anthropic's SDK timeout settings.maxTokensandthinkingfromgetModel()call incompletePrompt().This description was created by
for aa70d75. It will automatically update as commits are pushed.