llmasaservice-ui 0.12.21 → 0.12.22
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/index.js +0 -20
- package/dist/index.mjs +0 -20
- package/package.json +1 -1
- package/src/ChatPanel.tsx +0 -31
package/dist/index.js
CHANGED
|
@@ -342,12 +342,6 @@ var ChatPanel = ({
|
|
|
342
342
|
}
|
|
343
343
|
lastThinkingContent = content || "Thinking";
|
|
344
344
|
}
|
|
345
|
-
console.log("processThinkingTags result:", {
|
|
346
|
-
originalLength: text.length,
|
|
347
|
-
cleanedLength: cleanedText.trim().length,
|
|
348
|
-
thinkingBlocksFound: thinkingBlocks2.length,
|
|
349
|
-
blockTypes: thinkingBlocks2.map((b) => b.type)
|
|
350
|
-
});
|
|
351
345
|
return {
|
|
352
346
|
cleanedText: cleanedText.trim(),
|
|
353
347
|
thinkingBlocks: thinkingBlocks2,
|
|
@@ -1686,24 +1680,10 @@ var ChatPanel = ({
|
|
|
1686
1680
|
const { cleanedText } = processThinkingTags(
|
|
1687
1681
|
response || ""
|
|
1688
1682
|
);
|
|
1689
|
-
console.log("Thinking block debug:", {
|
|
1690
|
-
thinkingBlocksLength: thinkingBlocks.length,
|
|
1691
|
-
currentThinkingIndex,
|
|
1692
|
-
isLastBlock: currentThinkingIndex === thinkingBlocks.length - 1,
|
|
1693
|
-
cleanedTextLength: (cleanedText == null ? void 0 : cleanedText.length) || 0,
|
|
1694
|
-
hasCleanedText: !!(cleanedText && cleanedText.length > 0),
|
|
1695
|
-
shouldShowLoading: currentThinkingIndex === thinkingBlocks.length - 1 && (!cleanedText || cleanedText.length === 0)
|
|
1696
|
-
});
|
|
1697
1683
|
if (thinkingBlocks.length > 0) {
|
|
1698
1684
|
const isOnLastBlock = currentThinkingIndex === thinkingBlocks.length - 1;
|
|
1699
1685
|
const hasMainContent = cleanedText && cleanedText.trim().length > 0;
|
|
1700
1686
|
const shouldShowLoading = isOnLastBlock && !hasMainContent;
|
|
1701
|
-
console.log("Loading decision:", {
|
|
1702
|
-
isOnLastBlock,
|
|
1703
|
-
hasMainContent,
|
|
1704
|
-
shouldShowLoading,
|
|
1705
|
-
cleanedTextPreview: (cleanedText == null ? void 0 : cleanedText.substring(0, 100)) || "EMPTY"
|
|
1706
|
-
});
|
|
1707
1687
|
return /* @__PURE__ */ import_react3.default.createElement("div", null, renderThinkingBlocks(), shouldShowLoading && /* @__PURE__ */ import_react3.default.createElement("div", { className: "loading-text" }, "Thinking...\xA0", /* @__PURE__ */ import_react3.default.createElement("div", { className: "dot" }), /* @__PURE__ */ import_react3.default.createElement("div", { className: "dot" }), /* @__PURE__ */ import_react3.default.createElement("div", { className: "dot" })));
|
|
1708
1688
|
}
|
|
1709
1689
|
if (!cleanedText || cleanedText.length === 0) {
|
package/dist/index.mjs
CHANGED
|
@@ -314,12 +314,6 @@ var ChatPanel = ({
|
|
|
314
314
|
}
|
|
315
315
|
lastThinkingContent = content || "Thinking";
|
|
316
316
|
}
|
|
317
|
-
console.log("processThinkingTags result:", {
|
|
318
|
-
originalLength: text.length,
|
|
319
|
-
cleanedLength: cleanedText.trim().length,
|
|
320
|
-
thinkingBlocksFound: thinkingBlocks2.length,
|
|
321
|
-
blockTypes: thinkingBlocks2.map((b) => b.type)
|
|
322
|
-
});
|
|
323
317
|
return {
|
|
324
318
|
cleanedText: cleanedText.trim(),
|
|
325
319
|
thinkingBlocks: thinkingBlocks2,
|
|
@@ -1658,24 +1652,10 @@ var ChatPanel = ({
|
|
|
1658
1652
|
const { cleanedText } = processThinkingTags(
|
|
1659
1653
|
response || ""
|
|
1660
1654
|
);
|
|
1661
|
-
console.log("Thinking block debug:", {
|
|
1662
|
-
thinkingBlocksLength: thinkingBlocks.length,
|
|
1663
|
-
currentThinkingIndex,
|
|
1664
|
-
isLastBlock: currentThinkingIndex === thinkingBlocks.length - 1,
|
|
1665
|
-
cleanedTextLength: (cleanedText == null ? void 0 : cleanedText.length) || 0,
|
|
1666
|
-
hasCleanedText: !!(cleanedText && cleanedText.length > 0),
|
|
1667
|
-
shouldShowLoading: currentThinkingIndex === thinkingBlocks.length - 1 && (!cleanedText || cleanedText.length === 0)
|
|
1668
|
-
});
|
|
1669
1655
|
if (thinkingBlocks.length > 0) {
|
|
1670
1656
|
const isOnLastBlock = currentThinkingIndex === thinkingBlocks.length - 1;
|
|
1671
1657
|
const hasMainContent = cleanedText && cleanedText.trim().length > 0;
|
|
1672
1658
|
const shouldShowLoading = isOnLastBlock && !hasMainContent;
|
|
1673
|
-
console.log("Loading decision:", {
|
|
1674
|
-
isOnLastBlock,
|
|
1675
|
-
hasMainContent,
|
|
1676
|
-
shouldShowLoading,
|
|
1677
|
-
cleanedTextPreview: (cleanedText == null ? void 0 : cleanedText.substring(0, 100)) || "EMPTY"
|
|
1678
|
-
});
|
|
1679
1659
|
return /* @__PURE__ */ React3.createElement("div", null, renderThinkingBlocks(), shouldShowLoading && /* @__PURE__ */ React3.createElement("div", { className: "loading-text" }, "Thinking...\xA0", /* @__PURE__ */ React3.createElement("div", { className: "dot" }), /* @__PURE__ */ React3.createElement("div", { className: "dot" }), /* @__PURE__ */ React3.createElement("div", { className: "dot" })));
|
|
1680
1660
|
}
|
|
1681
1661
|
if (!cleanedText || cleanedText.length === 0) {
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -340,13 +340,6 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
340
340
|
lastThinkingContent = content || "Thinking";
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
console.log("processThinkingTags result:", {
|
|
344
|
-
originalLength: text.length,
|
|
345
|
-
cleanedLength: cleanedText.trim().length,
|
|
346
|
-
thinkingBlocksFound: thinkingBlocks.length,
|
|
347
|
-
blockTypes: thinkingBlocks.map((b) => b.type),
|
|
348
|
-
});
|
|
349
|
-
|
|
350
343
|
return {
|
|
351
344
|
cleanedText: cleanedText.trim(),
|
|
352
345
|
thinkingBlocks,
|
|
@@ -2054,22 +2047,6 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
2054
2047
|
response || ""
|
|
2055
2048
|
);
|
|
2056
2049
|
|
|
2057
|
-
// Debug logging
|
|
2058
|
-
console.log("Thinking block debug:", {
|
|
2059
|
-
thinkingBlocksLength: thinkingBlocks.length,
|
|
2060
|
-
currentThinkingIndex,
|
|
2061
|
-
isLastBlock:
|
|
2062
|
-
currentThinkingIndex === thinkingBlocks.length - 1,
|
|
2063
|
-
cleanedTextLength: cleanedText?.length || 0,
|
|
2064
|
-
hasCleanedText: !!(
|
|
2065
|
-
cleanedText && cleanedText.length > 0
|
|
2066
|
-
),
|
|
2067
|
-
shouldShowLoading:
|
|
2068
|
-
currentThinkingIndex ===
|
|
2069
|
-
thinkingBlocks.length - 1 &&
|
|
2070
|
-
(!cleanedText || cleanedText.length === 0),
|
|
2071
|
-
});
|
|
2072
|
-
|
|
2073
2050
|
// If we have thinking blocks, show the current one
|
|
2074
2051
|
if (thinkingBlocks.length > 0) {
|
|
2075
2052
|
const isOnLastBlock =
|
|
@@ -2079,14 +2056,6 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
2079
2056
|
const shouldShowLoading =
|
|
2080
2057
|
isOnLastBlock && !hasMainContent;
|
|
2081
2058
|
|
|
2082
|
-
console.log("Loading decision:", {
|
|
2083
|
-
isOnLastBlock,
|
|
2084
|
-
hasMainContent,
|
|
2085
|
-
shouldShowLoading,
|
|
2086
|
-
cleanedTextPreview:
|
|
2087
|
-
cleanedText?.substring(0, 100) || "EMPTY",
|
|
2088
|
-
});
|
|
2089
|
-
|
|
2090
2059
|
return (
|
|
2091
2060
|
<div>
|
|
2092
2061
|
{renderThinkingBlocks()}
|