fix(autotitle): disable GLM thinking + raise max_tokens — reasoning model burned the 24-token budget before emitting any text
This commit is contained in:
+2
-1
@@ -110,7 +110,8 @@ func requestTitle(userText string) (string, error) {
|
|||||||
"messages": []map[string]string{
|
"messages": []map[string]string{
|
||||||
{"role": "user", "content": userText + autoTitlePromptTail},
|
{"role": "user", "content": userText + autoTitlePromptTail},
|
||||||
},
|
},
|
||||||
"max_tokens": 24,
|
"max_tokens": 512,
|
||||||
|
"thinking": map[string]any{"type": "disabled"},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
Reference in New Issue
Block a user