mirror of https://github.com/langgenius/dify.git
feat: llm node support tools
This commit is contained in:
parent
f439e081b5
commit
a7859de625
|
|
@ -0,0 +1,29 @@
|
||||||
|
import { memo } from 'react'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
import Tooltip from '@/app/components/base/tooltip'
|
||||||
|
import Field from '@/app/components/workflow/nodes/_base/components/field'
|
||||||
|
|
||||||
|
const i18nPrefix = 'workflow.nodes.llm'
|
||||||
|
|
||||||
|
const Tools = () => {
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Field
|
||||||
|
title={t(`${i18nPrefix}.tools.title`)}
|
||||||
|
tooltip={t('appDebug.vision.description')!}
|
||||||
|
operations={(
|
||||||
|
<Tooltip
|
||||||
|
popupContent={t('appDebug.vision.onlySupportVisionModelTip')!}
|
||||||
|
>
|
||||||
|
</Tooltip>
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<div>
|
||||||
|
<div>Tools</div>
|
||||||
|
</div>
|
||||||
|
</Field>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default memo(Tools)
|
||||||
|
|
@ -560,6 +560,9 @@ const translation = {
|
||||||
saveSchema: 'Please finish editing the current field before saving the schema',
|
saveSchema: 'Please finish editing the current field before saving the schema',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
tools: {
|
||||||
|
title: 'Tools',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
knowledgeRetrieval: {
|
knowledgeRetrieval: {
|
||||||
queryVariable: 'Query Variable',
|
queryVariable: 'Query Variable',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue