fix: title generation for certain providers (#1159)

This commit is contained in:
Aiden Cline 2025-07-19 20:01:55 -05:00 committed by GitHub
parent faf8da8743
commit 03de0c406d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -540,7 +540,7 @@ export namespace Session {
if (msgs.length === 0 && !session.parentID) {
const small = (await Provider.getSmallModel(input.providerID)) ?? model
generateText({
maxOutputTokens: input.providerID === "google" ? 1024 : 20,
maxOutputTokens: small.info.reasoning ? 1024 : 20,
providerOptions: {
[input.providerID]: small.info.options,
},