mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-24 18:23:07 +08:00
feat: support query date tool (#662)
This commit is contained in:
@@ -49,6 +49,8 @@ const Thought: FC<IThoughtProps> = ({
|
||||
return t('explore.universalChat.thought.res.google', { query: input.query })
|
||||
case 'wikipedia':
|
||||
return t('explore.universalChat.thought.res.wikipedia', { query: input.query })
|
||||
case 'current_datetime':
|
||||
return t('explore.universalChat.thought.res.date')
|
||||
default:
|
||||
return `Unknown tool: ${item.tool}`
|
||||
}
|
||||
|
||||
@@ -43,7 +43,8 @@ const Summary: FC<ISummaryProps> = ({
|
||||
plugins,
|
||||
dataSets,
|
||||
}) => {
|
||||
const pluginIds = Object.keys(plugins).filter(key => plugins[key])
|
||||
// current_datetime is not configable and do not have icon
|
||||
const pluginIds = Object.keys(plugins).filter(key => plugins[key] && key !== 'current_datetime')
|
||||
const [isShowConfig, { setFalse: hideConfig, toggle: toggleShowConfig }] = useBoolean(false)
|
||||
const configContentRef = React.useRef(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user