mirror of
https://github.com/sst/opencode.git
synced 2025-07-23 15:55:03 +00:00
fix: title generation for certain providers (#1159)
This commit is contained in:
parent
faf8da8743
commit
03de0c406d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue