add OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX to override 32k default (#5679)

Co-authored-by: qio <handsomehust@gmail.com>
This commit is contained in:
Qio
2025-12-18 00:35:43 +08:00
committed by GitHub
parent 204e3bf382
commit 1e4bfbcf6f
4 changed files with 5 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ import { Flag } from "@/flag/flag"
export namespace LLM {
const log = Log.create({ service: "llm" })
export const OUTPUT_TOKEN_MAX = 32_000
export const OUTPUT_TOKEN_MAX = Flag.OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX || 32_000
export type StreamInput = {
user: MessageV2.User