






















@@ -33,8 +33,7 @@ describe("createBlockReplyDeliveryHandler", () => {
3333blockStreamingEnabled: false,
3434blockReplyPipeline: null,
3535 directlySentBlockKeys,
36-directlySentBlockTextFragments: [],
37-directlySentBlockMediaUrls: [],
36+directlySentBlockPayloads: [],
3837});
39384039await handler({
@@ -72,8 +71,7 @@ describe("createBlockReplyDeliveryHandler", () => {
7271blockStreamingEnabled: false,
7372blockReplyPipeline: null,
7473 directlySentBlockKeys,
75-directlySentBlockTextFragments: [],
76-directlySentBlockMediaUrls: [],
74+directlySentBlockPayloads: [],
7775});
78767977await handler({
@@ -110,8 +108,7 @@ describe("createBlockReplyDeliveryHandler", () => {
110108blockStreamingEnabled: false,
111109blockReplyPipeline: null,
112110 directlySentBlockKeys,
113-directlySentBlockTextFragments: [],
114-directlySentBlockMediaUrls: [],
111+directlySentBlockPayloads: [],
115112});
116113117114await handler({
@@ -155,8 +152,7 @@ describe("createBlockReplyDeliveryHandler", () => {
155152blockStreamingEnabled: false,
156153blockReplyPipeline: null,
157154 directlySentBlockKeys,
158-directlySentBlockTextFragments: [],
159-directlySentBlockMediaUrls: [],
155+directlySentBlockPayloads: [],
160156});
161157162158await handler({ presentation });
@@ -188,8 +184,7 @@ describe("createBlockReplyDeliveryHandler", () => {
188184blockStreamingEnabled: false,
189185blockReplyPipeline: null,
190186directlySentBlockKeys: new Set(),
191-directlySentBlockTextFragments: [],
192-directlySentBlockMediaUrls: [],
187+directlySentBlockPayloads: [],
193188});
194189195190await handler({ text: "text only" });
@@ -212,8 +207,7 @@ describe("createBlockReplyDeliveryHandler", () => {
212207blockStreamingEnabled: true,
213208 blockReplyPipeline,
214209directlySentBlockKeys: new Set(),
215-directlySentBlockTextFragments: [],
216-directlySentBlockMediaUrls: [],
210+directlySentBlockPayloads: [],
217211});
218212219213await handler({ text: "\n\n Hello from stream" });
@@ -246,8 +240,7 @@ describe("createBlockReplyDeliveryHandler", () => {
246240blockStreamingEnabled: true,
247241 blockReplyPipeline,
248242directlySentBlockKeys: new Set(),
249-directlySentBlockTextFragments: [],
250-directlySentBlockMediaUrls: [],
243+directlySentBlockPayloads: [],
251244});
252245253246await handler({ text: "reset intro" });
@@ -331,8 +324,7 @@ describe("createBlockReplyDeliveryHandler", () => {
331324blockStreamingEnabled: true,
332325 blockReplyPipeline,
333326directlySentBlockKeys: new Set(),
334-directlySentBlockTextFragments: [],
335-directlySentBlockMediaUrls: [],
327+directlySentBlockPayloads: [],
336328});
337329338330await handler({ text: "Result", mediaUrl: "./image.png" });
@@ -370,8 +362,7 @@ describe("createBlockReplyDeliveryHandler", () => {
370362blockStreamingEnabled: true,
371363 blockReplyPipeline,
372364directlySentBlockKeys: new Set(),
373-directlySentBlockTextFragments: [],
374-directlySentBlockMediaUrls: [],
365+directlySentBlockPayloads: [],
375366});
376367377368await handler({ text: "NO_REPLY", mediaUrls: ["./missing.png", "./survived.png"] });
@@ -403,8 +394,7 @@ describe("createBlockReplyDeliveryHandler", () => {
403394blockStreamingEnabled: true,
404395 blockReplyPipeline,
405396directlySentBlockKeys: new Set(),
406-directlySentBlockTextFragments: [],
407-directlySentBlockMediaUrls: [],
397+directlySentBlockPayloads: [],
408398});
409399410400const payload = setReplyPayloadMetadata({ text: "Alpha" }, { assistantMessageIndex: 7 });
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。