fix: maxOutputTokens was accidentally hardcoded to undefined (#10995)
This commit is contained in:
@@ -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", {
|
log.info("max_output_tokens", {
|
||||||
tokens: ProviderTransform.maxOutputTokens(
|
tokens: ProviderTransform.maxOutputTokens(
|
||||||
input.model.api.npm,
|
input.model.api.npm,
|
||||||
|
|||||||
Reference in New Issue
Block a user