iflow-feishu 1.1.0 → 1.1.1
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/package.json +1 -1
- package/src/core/card-builder.js +6 -6
package/package.json
CHANGED
package/src/core/card-builder.js
CHANGED
|
@@ -55,9 +55,9 @@ class CardBuilder {
|
|
|
55
55
|
|
|
56
56
|
let titleContent = '';
|
|
57
57
|
if (modelName) titleContent += `<font color='blue'>${modelName}</font>`;
|
|
58
|
-
//
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
// 显示剩余上下文
|
|
59
|
+
const displayPercent = contentLeftPercent !== null ? contentLeftPercent : 100;
|
|
60
|
+
titleContent += (titleContent ? ' | ' : '') + `<font color='grey'>${displayPercent}% left</font>`;
|
|
61
61
|
if (thinkingStatus) titleContent += (titleContent ? ' <font color=\'grey\'>|</font> ' : '') + thinkingStatus;
|
|
62
62
|
|
|
63
63
|
if (titleContent) {
|
|
@@ -84,9 +84,9 @@ class CardBuilder {
|
|
|
84
84
|
|
|
85
85
|
let titleContent = '';
|
|
86
86
|
if (modelName) titleContent += `<font color='blue'>${modelName}</font>`;
|
|
87
|
-
//
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
// 显示剩余上下文
|
|
88
|
+
const displayPercent = contentLeftPercent !== null ? contentLeftPercent : 100;
|
|
89
|
+
titleContent += (titleContent ? ' | ' : '') + `<font color='grey'>${displayPercent}% left</font>`;
|
|
90
90
|
const statusColor = isGenerating ? 'orange' : 'green';
|
|
91
91
|
titleContent += (titleContent ? ' <font color=\'grey\'>|</font> ' : '') + `<font color='${statusColor}'>${responseTitle}</font>`;
|
|
92
92
|
|