@agentscope-ai/chat 1.1.45-beta.1766392979633 → 1.1.45-beta.1766394603804

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.
@@ -96,7 +96,7 @@ export default forwardRef(function (_, ref) {
96
96
 
97
97
  if (item.trigger) {
98
98
  trigger = item.trigger;
99
- } else if (item.title || item.description) {
99
+ } else if ((item.title || item.description) && onUpload.length > 1) {
100
100
  trigger = <Button type='text' icon={item.icon} >
101
101
  {item.title && <span>{item.title}</span>}
102
102
  {item.description && <span style={{ fontSize: '0.8em', opacity: 0.8 }}>{item.description}</span>}
@@ -132,7 +132,7 @@ export default /*#__PURE__*/forwardRef(function (_, ref) {
132
132
  var trigger;
133
133
  if (item.trigger) {
134
134
  trigger = item.trigger;
135
- } else if (item.title || item.description) {
135
+ } else if ((item.title || item.description) && onUpload.length > 1) {
136
136
  trigger = /*#__PURE__*/_jsxs(Button, {
137
137
  type: "text",
138
138
  icon: item.icon,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentscope-ai/chat",
3
- "version": "1.1.45-beta.1766392979633",
3
+ "version": "1.1.45-beta.1766394603804",
4
4
  "description": "a free and open-source chat framework for building excellent LLM-powered chat experiences",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": [