diff options
| author | Dax Raad <[email protected]> | 2025-07-10 07:54:22 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-10 07:57:55 -0400 |
| commit | f478f89a68c73756d92029a27d20a2aaf81c6482 (patch) | |
| tree | 9560b6373d3a5dfe5109cb99a8b2e77a90d67d45 | |
| parent | 85d95f0f2b07d5a9a47c71f68ea5e0099ce17036 (diff) | |
| download | opencode-f478f89a68c73756d92029a27d20a2aaf81c6482.tar.gz opencode-f478f89a68c73756d92029a27d20a2aaf81c6482.zip | |
temporary grok 4 patch
| -rw-r--r-- | packages/opencode/src/session/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/session/index.ts b/packages/opencode/src/session/index.ts index 108b0b04b..a43cedd2c 100644 --- a/packages/opencode/src/session/index.ts +++ b/packages/opencode/src/session/index.ts @@ -580,7 +580,7 @@ export namespace Session { const result = streamText({ onError() {}, maxRetries: 10, - maxOutputTokens: Math.max(0, model.info.limit.output) || undefined, + maxOutputTokens: input.modelID.includes("grok-4") ? undefined : Math.max(0, model.info.limit.output) || undefined, abortSignal: abort.signal, stopWhen: stepCountIs(1000), providerOptions: model.info.options, |
