Просмотр исходного кода

ignore: tmp transform exclusion

Aiden Cline 2 месяцев назад
Родитель
Сommit
7b4f852f33
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      packages/opencode/src/provider/transform.ts

+ 6 - 1
packages/opencode/src/provider/transform.ts

@@ -74,12 +74,17 @@ export namespace ProviderTransform {
       return result
     }
 
+    // TODO: rm later
+    const bugged =
+      (model.id === "kimi-k2-thinking" && model.providerID === "opencode") ||
+      (model.id === "moonshotai/Kimi-K2-Thinking" && model.providerID === "baseten")
     if (
       model.providerID === "deepseek" ||
       model.api.id.toLowerCase().includes("deepseek") ||
       (model.capabilities.interleaved &&
         typeof model.capabilities.interleaved === "object" &&
-        model.capabilities.interleaved.field === "reasoning_content")
+        model.capabilities.interleaved.field === "reasoning_content" &&
+        !bugged)
     ) {
       return msgs.map((msg) => {
         if (msg.role === "assistant" && Array.isArray(msg.content)) {