diff options
| author | Dax Raad <[email protected]> | 2025-05-26 14:09:17 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-26 14:09:17 -0400 |
| commit | 80555f13e052443dc9dc67811bf782a3146de512 (patch) | |
| tree | 9219001cf50a23032ad968fc036053dfd223b65e /js/src/session | |
| parent | 113c49457fd6e37d517e2d212e2e6eb21084b4fb (diff) | |
| download | opencode-80555f13e052443dc9dc67811bf782a3146de512.tar.gz opencode-80555f13e052443dc9dc67811bf782a3146de512.zip | |
more tools
Diffstat (limited to 'js/src/session')
| -rw-r--r-- | js/src/session/session.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/session/session.ts b/js/src/session/session.ts index 8f486d580..06a929270 100644 --- a/js/src/session/session.ts +++ b/js/src/session/session.ts @@ -6,6 +6,7 @@ import { Storage } from "../storage/storage"; import { Log } from "../util/log"; import { convertToModelMessages, + stepCountIs, streamText, type TextUIPart, type ToolInvocationUIPart, @@ -169,7 +170,7 @@ export namespace Session { const model = await LLM.findModel("claude-sonnet-4-20250514"); const result = streamText({ - maxSteps: 1000, + stopWhen: stepCountIs(1000), messages: convertToModelMessages(msgs), temperature: 0, tools, |
