mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-11 14:47:58 +08:00
- Introduced a new `models` package for organizing Claude client model templates and building responses. - Migrated Claude response handling to `claudemodels.BuildResponse`. - Added comprehensive tests for model ID transformation, sorting, and metadata validation. - Removed redundant utility functions and simplified integration with the API server.
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")
|
|
}
|