@gendive/chatllm 0.17.43 → 0.17.44
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.
package/dist/react/index.js
CHANGED
|
@@ -3123,7 +3123,8 @@ ${attachmentContext}
|
|
|
3123
3123
|
}, attachExtra);
|
|
3124
3124
|
pendingAttachmentDataRef.current = null;
|
|
3125
3125
|
if (skillResult?.content) {
|
|
3126
|
-
|
|
3126
|
+
const isImageSkillResult = skillResult.metadata?.type === "image" || skillResult.metadata?.resultType === "image";
|
|
3127
|
+
if (isImageSkillResult) {
|
|
3127
3128
|
accumulatedContent = skillResult.metadata?.outputText || "\uC774\uBBF8\uC9C0 \uC0DD\uC131 \uC644\uB8CC";
|
|
3128
3129
|
checklistStepImageUrl = skillResult.content;
|
|
3129
3130
|
} else {
|
|
@@ -3268,7 +3269,7 @@ ${result.content}
|
|
|
3268
3269
|
abortControllerRef.current = null;
|
|
3269
3270
|
return;
|
|
3270
3271
|
}
|
|
3271
|
-
const skillResultType = result.metadata?.type;
|
|
3272
|
+
const skillResultType = result.metadata?.type || result.metadata?.resultType;
|
|
3272
3273
|
if (skillResultType === "image" || skillResultType === "file") {
|
|
3273
3274
|
const imgFileParts = [];
|
|
3274
3275
|
if (skillCleanContent.trim()) {
|