Skip to content

Commit 11d4867

Browse files
rekram1-nodeopencode-agent[bot]
authored andcommitted
fix: rm ai sdk middleware that was preventing <think> blocks from being sent back as assistant message content (#11270)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
1 parent 71e0ba2 commit 11d4867

File tree

1 file changed

+0
-3
lines changed
  • packages/opencode/src/session

1 file changed

+0
-3
lines changed

packages/opencode/src/session/llm.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os from "os"
21
import { Installation } from "@/installation"
32
import { Provider } from "@/provider/provider"
43
import { Log } from "@/util/log"
@@ -9,7 +8,6 @@ import {
98
type StreamTextResult,
109
type Tool,
1110
type ToolSet,
12-
extractReasoningMiddleware,
1311
tool,
1412
jsonSchema,
1513
} from "ai"
@@ -261,7 +259,6 @@ export namespace LLM {
261259
return args.params
262260
},
263261
},
264-
extractReasoningMiddleware({ tagName: "think", startWithReasoning: false }),
265262
],
266263
}),
267264
experimental_telemetry: {

0 commit comments

Comments
 (0)