chore: final cleanup of legacy model references and placeholder updates

This commit is contained in:
Finessse
2025-12-25 05:59:31 +07:00
parent f83d2b638a
commit 8c14135f97
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ func tokenizerForCodexModel(model string) (tokenizer.Codec, error) {
switch {
case sanitized == "":
return tokenizer.Get(tokenizer.Cl100kBase)
case strings.HasPrefix(sanitized, "gpt-5"):
case strings.HasPrefix(sanitized, "gpt-5.2"):
return tokenizer.ForModel(tokenizer.GPT5)
case strings.HasPrefix(sanitized, "gpt-4.1"):
return tokenizer.ForModel(tokenizer.GPT41)
+2 -2
View File
@@ -21,8 +21,8 @@ const (
//
// Examples:
// - "claude-sonnet-4-5-20250929(16384)" → budget=16384
// - "gpt-5.1(high)" → reasoning_effort="high"
// - "gemini-2.5-pro(32768)" → budget=32768
// - "gpt-5.2(high)" → reasoning_effort="high"
// - "gemini-3-pro-preview(32768)" → budget=32768
//
// Note: Empty parentheses "()" are not supported and will be ignored.
func NormalizeThinkingModel(modelName string) (string, map[string]any) {