mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
chore: remove frontend changes
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
import type { FC } from 'react'
|
||||
import React from 'react'
|
||||
import type { ParameterExtractorNodeType } from './types'
|
||||
import type { NodeProps } from '@/app/components/workflow/types'
|
||||
import * as React from 'react'
|
||||
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'
|
||||
import type { NodeProps } from '@/app/components/workflow/types'
|
||||
|
||||
const Node: FC<NodeProps<ParameterExtractorNodeType>> = ({
|
||||
data,
|
||||
@ -16,12 +16,12 @@ const Node: FC<NodeProps<ParameterExtractorNodeType>> = ({
|
||||
} = useTextGenerationCurrentProviderAndModelAndModelList()
|
||||
const hasSetModel = provider && modelId
|
||||
return (
|
||||
<div className='mb-1 px-3 py-1'>
|
||||
<div className="mb-1 px-3 py-1">
|
||||
{hasSetModel && (
|
||||
<ModelSelector
|
||||
defaultModel={{ provider, model: modelId }}
|
||||
modelList={textGenerationModelList}
|
||||
triggerClassName='!h-6 !rounded-md'
|
||||
triggerClassName="!h-6 !rounded-md"
|
||||
readonly
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user