fix: use message mediaUrl attachment hints · openclaw/openclaw@3b2fb9e
steipete
·
2026-05-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -501,7 +501,7 @@ describe("createVideoGenerateTool", () => {
|
501 | 501 | |
502 | 502 | expect(saveSpy).not.toHaveBeenCalled(); |
503 | 503 | expect(text).toContain("Generated 1 video with vydra/veo3."); |
504 | | -expect(text).toContain('url="https://example.com/generated-lobster.mp4"'); |
| 504 | +expect(text).toContain('mediaUrl="https://example.com/generated-lobster.mp4"'); |
505 | 505 | expect(text).not.toContain("MEDIA:"); |
506 | 506 | const details = resultDetails(result); |
507 | 507 | expect(details.provider).toBe("vydra"); |
@@ -552,7 +552,7 @@ describe("createVideoGenerateTool", () => {
|
552 | 552 | const text = (result.content?.[0] as { text: string } | undefined)?.text ?? ""; |
553 | 553 | |
554 | 554 | expect(text).toContain("Generated 1 video with fal/fal-ai/minimax/video-01-live."); |
555 | | -expect(text).toContain('url="https://fal.run/files/generated-lobster.mp4"'); |
| 555 | +expect(text).toContain('mediaUrl="https://fal.run/files/generated-lobster.mp4"'); |
556 | 556 | expect(text).not.toContain("MEDIA:"); |
557 | 557 | const details = resultDetails(result); |
558 | 558 | expect(details.provider).toBe("fal"); |
@@ -658,7 +658,7 @@ describe("createVideoGenerateTool", () => {
|
658 | 658 | name: "lobster.mp4", |
659 | 659 | }, |
660 | 660 | ]); |
661 | | -expect(wake.result).toContain('url="https://example.com/generated-lobster.mp4"'); |
| 661 | +expect(wake.result).toContain('mediaUrl="https://example.com/generated-lobster.mp4"'); |
662 | 662 | expect(wake.result).not.toContain("MEDIA:"); |
663 | 663 | }); |
664 | 664 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。