Revert "parameters and rules"

This reverts commit 22696fa75b.
This commit is contained in:
JzoNg
2024-11-01 11:59:40 +08:00
parent f2a5da918b
commit c39be7852f
16 changed files with 75 additions and 105 deletions

View File

@ -132,7 +132,6 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
isInWorkflow
isAdvancedMode={true}
mode={model?.mode}
pluginId={model?.plugin_id}
provider={model?.provider}
completionParams={model?.completion_params}
modelId={model?.name}

View File

@ -123,7 +123,7 @@ const useConfig = (id: string, payload: LLMNodeType) => {
},
})
const handleModelChanged = useCallback((model: { provider: string; modelId: string; pluginId: string; mode?: string }) => {
const handleModelChanged = useCallback((model: { provider: string; modelId: string; mode?: string }) => {
const newInputs = produce(inputRef.current, (draft) => {
draft.model.provider = model.provider
draft.model.name = model.modelId
@ -139,7 +139,6 @@ const useConfig = (id: string, payload: LLMNodeType) => {
useEffect(() => {
if (currentProvider?.provider && currentModel?.model && !model.provider) {
handleModelChanged({
pluginId: currentProvider?.plugin_id,
provider: currentProvider?.provider,
modelId: currentModel?.model,
mode: currentModel?.model_properties?.mode as string,