mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-08 10:10:58 +00:00
fix: maxOutputTokens was accidentally hardcoded to undefined (#10995)
This commit is contained in:
parent
b937fe9450
commit
870c38a6aa
1 changed files with 8 additions and 1 deletions
|
|
@ -150,7 +150,14 @@ export namespace LLM {
|
|||
},
|
||||
)
|
||||
|
||||
const maxOutputTokens = isCodex ? undefined : undefined
|
||||
const maxOutputTokens = isCodex
|
||||
? undefined
|
||||
: ProviderTransform.maxOutputTokens(
|
||||
input.model.api.npm,
|
||||
params.options,
|
||||
input.model.limit.output,
|
||||
OUTPUT_TOKEN_MAX,
|
||||
)
|
||||
log.info("max_output_tokens", {
|
||||
tokens: ProviderTransform.maxOutputTokens(
|
||||
input.model.api.npm,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue