mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 15:05:54 +08:00
feat: support query date tool (#662)
This commit is contained in:
parent
2adaceab82
commit
d44d4bd6fd
@ -49,6 +49,8 @@ const Thought: FC<IThoughtProps> = ({
|
|||||||
return t('explore.universalChat.thought.res.google', { query: input.query })
|
return t('explore.universalChat.thought.res.google', { query: input.query })
|
||||||
case 'wikipedia':
|
case 'wikipedia':
|
||||||
return t('explore.universalChat.thought.res.wikipedia', { query: input.query })
|
return t('explore.universalChat.thought.res.wikipedia', { query: input.query })
|
||||||
|
case 'current_datetime':
|
||||||
|
return t('explore.universalChat.thought.res.date')
|
||||||
default:
|
default:
|
||||||
return `Unknown tool: ${item.tool}`
|
return `Unknown tool: ${item.tool}`
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,8 @@ const Summary: FC<ISummaryProps> = ({
|
|||||||
plugins,
|
plugins,
|
||||||
dataSets,
|
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 [isShowConfig, { setFalse: hideConfig, toggle: toggleShowConfig }] = useBoolean(false)
|
||||||
const configContentRef = React.useRef(null)
|
const configContentRef = React.useRef(null)
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ const translation = {
|
|||||||
google: 'Searching Google {{query}}',
|
google: 'Searching Google {{query}}',
|
||||||
wikipedia: 'Searching Wikipedia {{query}}',
|
wikipedia: 'Searching Wikipedia {{query}}',
|
||||||
dataset: 'Retrieving dataset {datasetName}',
|
dataset: 'Retrieving dataset {datasetName}',
|
||||||
|
date: 'Searching date',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
viewConfigDetailTip: 'In conversation, cannot change above settings',
|
viewConfigDetailTip: 'In conversation, cannot change above settings',
|
||||||
|
@ -69,6 +69,7 @@ const translation = {
|
|||||||
google: '搜索谷歌 {{query}}',
|
google: '搜索谷歌 {{query}}',
|
||||||
wikipedia: '搜索维基百科 {{query}}',
|
wikipedia: '搜索维基百科 {{query}}',
|
||||||
dataset: '检索数据集 {datasetName}',
|
dataset: '检索数据集 {datasetName}',
|
||||||
|
date: '查询日期',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
viewConfigDetailTip: '在对话中,无法更改上述设置',
|
viewConfigDetailTip: '在对话中,无法更改上述设置',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user