fix: image reading
publish / publish (push) Has been cancelled

This commit is contained in:
adamdottv
2025-07-08 13:02:13 -05:00
parent 8322f18e03
commit f31cbf2744
4 changed files with 16 additions and 8 deletions
+2 -2
View File
@@ -372,11 +372,11 @@ export namespace Session {
return [
{
type: "text",
text: ["Called the Read tool on " + url.pathname].join("\n"),
text: `Called the Read tool with the following input: {\"filePath\":\"${url.pathname}\"}`,
},
{
type: "file",
url: `data:${part.mime};base64,` + Buffer.from(await file.bytes()).toString("base64url"),
url: `data:${part.mime};base64,` + Buffer.from(await file.bytes()).toString("base64"),
mime: part.mime,
filename: part.filename!,
},