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>
This commit is contained in:
parent
71e0ba271f
commit
11d486707c
1 changed files with 0 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
import os from "os"
|
|
||||||
import { Installation } from "@/installation"
|
import { Installation } from "@/installation"
|
||||||
import { Provider } from "@/provider/provider"
|
import { Provider } from "@/provider/provider"
|
||||||
import { Log } from "@/util/log"
|
import { Log } from "@/util/log"
|
||||||
|
|
@ -9,7 +8,6 @@ import {
|
||||||
type StreamTextResult,
|
type StreamTextResult,
|
||||||
type Tool,
|
type Tool,
|
||||||
type ToolSet,
|
type ToolSet,
|
||||||
extractReasoningMiddleware,
|
|
||||||
tool,
|
tool,
|
||||||
jsonSchema,
|
jsonSchema,
|
||||||
} from "ai"
|
} from "ai"
|
||||||
|
|
@ -261,7 +259,6 @@ export namespace LLM {
|
||||||
return args.params
|
return args.params
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extractReasoningMiddleware({ tagName: "think", startWithReasoning: false }),
|
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
experimental_telemetry: {
|
experimental_telemetry: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue