@zero-library/chat-agent 2.0.1 → 2.0.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.
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -634,7 +634,7 @@ function createChatStore() {
|
|
|
634
634
|
});
|
|
635
635
|
const setAgentParams = (params = {}) => {
|
|
636
636
|
agent.params = {
|
|
637
|
-
thinkMode: 2,
|
|
637
|
+
thinkMode: "2",
|
|
638
638
|
...params
|
|
639
639
|
};
|
|
640
640
|
};
|
|
@@ -1562,9 +1562,9 @@ var ChatSender_default2 = () => {
|
|
|
1562
1562
|
antd.Button,
|
|
1563
1563
|
{
|
|
1564
1564
|
size: "small",
|
|
1565
|
-
color: agentState.params.thinkMode === 1 ? "primary" : "default",
|
|
1565
|
+
color: agentState.params.thinkMode === "1" ? "primary" : "default",
|
|
1566
1566
|
variant: "filled",
|
|
1567
|
-
onClick: () => chatStore.setAgentParams({ thinkMode: agentState.params.thinkMode === 1 ? 2 : 1 }),
|
|
1567
|
+
onClick: () => chatStore.setAgentParams({ thinkMode: agentState.params.thinkMode === "1" ? "2" : "1" }),
|
|
1568
1568
|
children: "\u6DF1\u5EA6\u601D\u8003"
|
|
1569
1569
|
}
|
|
1570
1570
|
),
|