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
+6 -1
View File
@@ -228,7 +228,12 @@ export const layer = Layer.effect(
tokens: MessageV2.Assistant["tokens"]
model: Provider.Model
}) {
return overflow({ cfg: yield* config.get(), tokens: input.tokens, model: input.model })
return overflow({
cfg: yield* config.get(),
tokens: input.tokens,
model: input.model,
outputTokenMax: flags.outputTokenMax,
})
})
const estimate = Effect.fn("SessionCompaction.estimate")(function* (input: {