mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-13 04:53:23 +00:00
fix: generate title should use same options as model it uses to gen (#1064)
This commit is contained in:
parent
cdc1d8a94d
commit
a4664e2344
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ export namespace Session {
|
|||
const small = (await Provider.getSmallModel(input.providerID)) ?? model
|
||||
generateText({
|
||||
maxOutputTokens: input.providerID === "google" ? 1024 : 20,
|
||||
providerOptions: model.info.options,
|
||||
providerOptions: small.info.options,
|
||||
messages: [
|
||||
...SystemPrompt.title(input.providerID).map(
|
||||
(x): ModelMessage => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue