mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 06:02:42 +00:00
fix: make read tool output more concise for images
This commit is contained in:
parent
39e22f1294
commit
d2e4a34772
3 changed files with 63 additions and 63 deletions
|
|
@ -110,7 +110,7 @@ export const readTool: AgentTool<typeof readSchema> = {
|
|||
const base64 = buffer.toString("base64");
|
||||
|
||||
content = [
|
||||
{ type: "text", text: `Read image file: ${path}` },
|
||||
{ type: "text", text: `Read image file [${mimeType}]` },
|
||||
{ type: "image", data: base64, mimeType },
|
||||
];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue