add test file

This commit is contained in:
Elysia
2026-03-08 21:08:09 +08:00
parent ca3f497b56
commit 1071fe0ac7
2 changed files with 202 additions and 0 deletions

View File

@@ -259,6 +259,7 @@ func FilterThinkingBlocksForRetry(body []byte) []byte {
if !hasEmptyContent && !containsThinkingBlocks {
if topThinking := gjson.Get(jsonStr, "thinking"); topThinking.Exists() {
if out, err := sjson.DeleteBytes(body, "thinking"); err == nil {
out = removeThinkingDependentContextStrategies(out)
return out
}
return body