Ver Fonte

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>
Aiden Cline há 2 meses atrás
pai
commit
11d486707c
1 ficheiros alterados com 0 adições e 3 exclusões
  1. 0 3
      packages/opencode/src/session/llm.ts

+ 0 - 3
packages/opencode/src/session/llm.ts

@@ -1,4 +1,3 @@
-import os from "os"
 import { Installation } from "@/installation"
 import { Provider } from "@/provider/provider"
 import { Log } from "@/util/log"
@@ -9,7 +8,6 @@ import {
   type StreamTextResult,
   type Tool,
   type ToolSet,
-  extractReasoningMiddleware,
   tool,
   jsonSchema,
 } from "ai"
@@ -261,7 +259,6 @@ export namespace LLM {
               return args.params
             },
           },
-          extractReasoningMiddleware({ tagName: "think", startWithReasoning: false }),
         ],
       }),
       experimental_telemetry: {