refactor(flags): migrate output token max to runtime flags (#27680)

This commit is contained in:
Shoubhit Dash
2026-05-15 13:07:35 +05:30
committed by GitHub
parent 2080390ca6
commit 2d6bedecd4
7 changed files with 52 additions and 18 deletions

View File

@@ -173,7 +173,7 @@ const live: Layer.Layer<
: undefined,
topP: input.agent.topP ?? ProviderTransform.topP(input.model),
topK: ProviderTransform.topK(input.model),
maxOutputTokens: ProviderTransform.maxOutputTokens(input.model),
maxOutputTokens: ProviderTransform.maxOutputTokens(input.model, flags.outputTokenMax),
options,
},
)