@gendive/chatllm 0.21.1 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4388,6 +4388,7 @@ ${refContents}
4388
4388
  setTimeout(() => {
4389
4389
  const nextItem = checklist.items[nextStep];
4390
4390
  const refUrl = resolveChecklistRefImage(nextItem, checklist.messageId, checklist.sessionId);
4391
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4391
4392
  sendMessage(
4392
4393
  buildChecklistStepPrompt(nextStep, checklist.items.length, nextItem, false, refUrl),
4393
4394
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: nextStep, title: nextItem.title } }
@@ -4494,6 +4495,7 @@ ${stepSummary}
4494
4495
  setTimeout(() => {
4495
4496
  const firstItem = checklistBlock.items[0];
4496
4497
  const refUrl = resolveChecklistRefImage(firstItem, assistantMessageId, capturedSessionId);
4498
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4497
4499
  sendMessage(
4498
4500
  buildChecklistStepPrompt(0, checklistBlock.items.length, firstItem, true, refUrl),
4499
4501
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: 0, title: firstItem.title } }
@@ -4655,6 +4657,7 @@ ${stepSummary}
4655
4657
  setTimeout(() => {
4656
4658
  const items = message.checklistBlock.items;
4657
4659
  const refUrl = resolveChecklistRefImage(items[0], messageId, session.id);
4660
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4658
4661
  sendMessage(
4659
4662
  buildChecklistStepPrompt(0, items.length, items[0], true, refUrl),
4660
4663
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: 0, title: items[0].title } }
@@ -4733,6 +4736,7 @@ ${stepSummary}
4733
4736
  setTimeout(() => {
4734
4737
  const items = message.checklistBlock.items;
4735
4738
  const refUrl = resolveChecklistRefImage(items[stepIndex], messageId, session.id);
4739
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4736
4740
  sendMessage(
4737
4741
  buildChecklistStepPrompt(stepIndex, items.length, items[stepIndex], stepIndex === 0, refUrl),
4738
4742
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: stepIndex, title: items[stepIndex].title } }
@@ -4809,6 +4813,7 @@ ${stepSummary}
4809
4813
  setTimeout(() => {
4810
4814
  const items = message.checklistBlock.items;
4811
4815
  const refUrl = resolveChecklistRefImage(items[nextPending], messageId, session.id);
4816
+ if (refUrl) pendingAttachmentDataRef.current = [{ name: "ref_image", mimeType: "image/png", base64: "", size: 0, url: refUrl }];
4812
4817
  sendMessage(
4813
4818
  buildChecklistStepPrompt(nextPending, items.length, items[nextPending], false, refUrl),
4814
4819
  { hiddenUserMessage: true, isChecklistExecution: true, checklistStep: { index: nextPending, title: items[nextPending].title } }