mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-12-01 12:43:30 +01:00
24 lines
556 B
Go
24 lines
556 B
Go
package handler
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"cyberstrike-ai/internal/config"
|
|
)
|
|
|
|
// auditDisableThinking selects only the audit request's provider-specific field.
|
|
func auditDisableThinking(cfg config.OpenAIConfig) bool {
|
|
switch cfg.Reasoning.ProfileEffective() {
|
|
case "deepseek", "deepseek_compat":
|
|
return true
|
|
case "auto":
|
|
default:
|
|
return false
|
|
}
|
|
identity := strings.ToLower(cfg.Model + " " + cfg.BaseURL)
|
|
if strings.Contains(identity, "glm") {
|
|
return false
|
|
}
|
|
return strings.Contains(identity, "deepseek") || strings.Contains(identity, "qwen")
|
|
}
|