






















@@ -34,6 +34,7 @@ describe("createBlockReplyDeliveryHandler", () => {
3434blockReplyPipeline: null,
3535 directlySentBlockKeys,
3636directlySentBlockTextFragments: [],
37+directlySentBlockMediaUrls: [],
3738});
38393940await handler({
@@ -72,6 +73,7 @@ describe("createBlockReplyDeliveryHandler", () => {
7273blockReplyPipeline: null,
7374 directlySentBlockKeys,
7475directlySentBlockTextFragments: [],
76+directlySentBlockMediaUrls: [],
7577});
76787779await handler({
@@ -109,6 +111,7 @@ describe("createBlockReplyDeliveryHandler", () => {
109111blockReplyPipeline: null,
110112 directlySentBlockKeys,
111113directlySentBlockTextFragments: [],
114+directlySentBlockMediaUrls: [],
112115});
113116114117await handler({
@@ -153,6 +156,7 @@ describe("createBlockReplyDeliveryHandler", () => {
153156blockReplyPipeline: null,
154157 directlySentBlockKeys,
155158directlySentBlockTextFragments: [],
159+directlySentBlockMediaUrls: [],
156160});
157161158162await handler({ presentation });
@@ -185,6 +189,7 @@ describe("createBlockReplyDeliveryHandler", () => {
185189blockReplyPipeline: null,
186190directlySentBlockKeys: new Set(),
187191directlySentBlockTextFragments: [],
192+directlySentBlockMediaUrls: [],
188193});
189194190195await handler({ text: "text only" });
@@ -208,6 +213,7 @@ describe("createBlockReplyDeliveryHandler", () => {
208213 blockReplyPipeline,
209214directlySentBlockKeys: new Set(),
210215directlySentBlockTextFragments: [],
216+directlySentBlockMediaUrls: [],
211217});
212218213219await handler({ text: "\n\n Hello from stream" });
@@ -241,6 +247,7 @@ describe("createBlockReplyDeliveryHandler", () => {
241247 blockReplyPipeline,
242248directlySentBlockKeys: new Set(),
243249directlySentBlockTextFragments: [],
250+directlySentBlockMediaUrls: [],
244251});
245252246253await handler({ text: "reset intro" });
@@ -325,6 +332,7 @@ describe("createBlockReplyDeliveryHandler", () => {
325332 blockReplyPipeline,
326333directlySentBlockKeys: new Set(),
327334directlySentBlockTextFragments: [],
335+directlySentBlockMediaUrls: [],
328336});
329337330338await handler({ text: "Result", mediaUrl: "./image.png" });
@@ -363,6 +371,7 @@ describe("createBlockReplyDeliveryHandler", () => {
363371 blockReplyPipeline,
364372directlySentBlockKeys: new Set(),
365373directlySentBlockTextFragments: [],
374+directlySentBlockMediaUrls: [],
366375});
367376368377await handler({ text: "NO_REPLY", mediaUrls: ["./missing.png", "./survived.png"] });
@@ -395,6 +404,7 @@ describe("createBlockReplyDeliveryHandler", () => {
395404 blockReplyPipeline,
396405directlySentBlockKeys: new Set(),
397406directlySentBlockTextFragments: [],
407+directlySentBlockMediaUrls: [],
398408});
399409400410const payload = setReplyPayloadMetadata({ text: "Alpha" }, { assistantMessageIndex: 7 });
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。