| 1 | package openai |
| 2 | |
| 3 | import "strings" |
| 4 | |
| 5 | var kimiK3EffortVocabulary = []string{"low", "high", "max"} |
| 6 | |
| 7 | func usesKimiK3Contract(protocol, baseURL, model string) bool { |
| 8 | return protocol == "kimi-k3" || (IsKimiAPI(baseURL) && strings.EqualFold(strings.TrimSpace(model), "kimi-k3")) |
| 9 | } |
| 10 | |
| 11 | func reasoningEffortVocabulary(kimiK3 bool, configured []string) ([]string, bool) { |
| 12 | if kimiK3 { |
| 13 | return kimiK3EffortVocabulary, true |
| 14 | } |
| 15 | return configured, hasExplicitSupportedEfforts(configured) |
| 16 | } |
| 17 | |
| 18 | func kimiK3ReasoningEffort(kimiK3 bool, effort string) string { |
| 19 | if kimiK3 && effort == "" { |
| 20 | return "max" |
| 21 | } |
| 22 | return effort |
| 23 | } |
| 24 |