Revert "test: fix test now that image fix went in"
This reverts commit fffa718f5e.
This commit is contained in:
parent
e0a854f035
commit
d510bd52a4
1 changed files with 13 additions and 15 deletions
|
|
@ -264,6 +264,18 @@ describe("session.message-v2.toModelMessage", () => {
|
||||||
role: "user",
|
role: "user",
|
||||||
content: [{ type: "text", text: "run tool" }],
|
content: [{ type: "text", text: "run tool" }],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
role: "user",
|
||||||
|
content: [
|
||||||
|
{ type: "text", text: "Tool bash returned an attachment:" },
|
||||||
|
{
|
||||||
|
type: "file",
|
||||||
|
mediaType: "image/png",
|
||||||
|
filename: "attachment.png",
|
||||||
|
data: "https://example.com/attachment.png",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
role: "assistant",
|
role: "assistant",
|
||||||
content: [
|
content: [
|
||||||
|
|
@ -285,21 +297,7 @@ describe("session.message-v2.toModelMessage", () => {
|
||||||
type: "tool-result",
|
type: "tool-result",
|
||||||
toolCallId: "call-1",
|
toolCallId: "call-1",
|
||||||
toolName: "bash",
|
toolName: "bash",
|
||||||
output: {
|
output: { type: "text", value: "ok" },
|
||||||
type: "json",
|
|
||||||
value: {
|
|
||||||
output: "ok",
|
|
||||||
attachments: [
|
|
||||||
{
|
|
||||||
...basePart(assistantID, "file-1"),
|
|
||||||
type: "file",
|
|
||||||
mime: "image/png",
|
|
||||||
filename: "attachment.png",
|
|
||||||
url: "https://example.com/attachment.png",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
providerOptions: { openai: { tool: "meta" } },
|
providerOptions: { openai: { tool: "meta" } },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue