mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-02 20:40:52 +08:00
11 lines
323 B
Go
11 lines
323 B
Go
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")
|
|
}
|