mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
feat: llm node content
This commit is contained in:
@ -1,12 +1,24 @@
|
||||
import type { FC } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
const i18nPrefix = 'workflow.nodes.llm'
|
||||
import { mockLLMNodeData } from './mock'
|
||||
import {
|
||||
useTextGenerationCurrentProviderAndModelAndModelList,
|
||||
} from '@/app/components/header/account-setting/model-provider-page/hooks'
|
||||
import ModelSelector from '@/app/components/header/account-setting/model-provider-page/model-selector'
|
||||
|
||||
const Node: FC = () => {
|
||||
const { t } = useTranslation()
|
||||
const { provider, name: modelId } = mockLLMNodeData.model
|
||||
const {
|
||||
|
||||
textGenerationModelList,
|
||||
} = useTextGenerationCurrentProviderAndModelAndModelList()
|
||||
return (
|
||||
<div>llm</div>
|
||||
<div className='px-3'>
|
||||
<ModelSelector
|
||||
defaultModel={(provider || modelId) ? { provider, model: modelId } : undefined}
|
||||
modelList={textGenerationModelList}
|
||||
readonly
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -88,13 +88,6 @@ const Panel: FC = () => {
|
||||
>
|
||||
Vision
|
||||
</Field>
|
||||
{/* This version not support function */}
|
||||
{/* <Field
|
||||
title={t(`${i18nPrefix}.fu`)}
|
||||
inline
|
||||
>
|
||||
Functions
|
||||
</Field> */}
|
||||
|
||||
<OutputVars>
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user