refactor(flags): migrate output token max to runtime flags (#27680)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user