feat(util): add helper to detect Claude thinking models

This commit is contained in:
이대희
2025-12-19 10:27:24 +09:00
parent bbcb5552f3
commit 1bfa75f780
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package util
import "strings"
// IsClaudeThinkingModel checks if the model is a Claude thinking model
// that requires the interleaved-thinking beta header.
func IsClaudeThinkingModel(model string) bool {
lower := strings.ToLower(model)
return strings.Contains(lower, "claude") && strings.Contains(lower, "thinking")
}