opencode-agent[bot] 4 месяцев назад
Родитель
Сommit
9c88235121
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      packages/opencode/test/session/message-v2.test.ts

+ 6 - 1
packages/opencode/test/session/message-v2.test.ts

@@ -587,7 +587,12 @@ describe("session.message-v2.toModelMessage", () => {
         role: "user",
         content: [
           { type: "text", text: "Attached media from tool result:" },
-          { type: "file", mediaType: "application/pdf", filename: "example.pdf", data: `data:application/pdf;base64,${pdf}` },
+          {
+            type: "file",
+            mediaType: "application/pdf",
+            filename: "example.pdf",
+            data: `data:application/pdf;base64,${pdf}`,
+          },
         ],
       },
     ])