@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.esm.js CHANGED
@@ -626,7 +626,7 @@ function createChatStore() {
626
626
  });
627
627
  const setAgentParams = (params = {}) => {
628
628
  agent.params = {
629
- thinkMode: 2,
629
+ thinkMode: "2",
630
630
  ...params
631
631
  };
632
632
  };
@@ -1554,9 +1554,9 @@ var ChatSender_default2 = () => {
1554
1554
  Button,
1555
1555
  {
1556
1556
  size: "small",
1557
- color: agentState.params.thinkMode === 1 ? "primary" : "default",
1557
+ color: agentState.params.thinkMode === "1" ? "primary" : "default",
1558
1558
  variant: "filled",
1559
- onClick: () => chatStore.setAgentParams({ thinkMode: agentState.params.thinkMode === 1 ? 2 : 1 }),
1559
+ onClick: () => chatStore.setAgentParams({ thinkMode: agentState.params.thinkMode === "1" ? "2" : "1" }),
1560
1560
  children: "\u6DF1\u5EA6\u601D\u8003"
1561
1561
  }
1562
1562
  ),