mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
more tools
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user