mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: support llm single run
This commit is contained in:
@ -211,14 +211,14 @@ const useOneStepRun = <T>({
|
||||
const originalVar = getVar(item.value_selector)
|
||||
if (!originalVar) {
|
||||
return {
|
||||
label: item.variable,
|
||||
label: item.label || item.variable,
|
||||
variable: item.variable,
|
||||
type: InputVarType.textInput,
|
||||
required: true,
|
||||
}
|
||||
}
|
||||
return {
|
||||
label: item.variable,
|
||||
label: item.label || item.variable,
|
||||
variable: item.variable,
|
||||
type: varTypeToInputVarType(originalVar.type, {
|
||||
isSelect: !!originalVar.isSelect,
|
||||
|
||||
@ -286,7 +286,8 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
||||
variable[0] = varInfo?.title || availableNodes[0]?.data.title // default start node title
|
||||
|
||||
return {
|
||||
variable: `${variable[0]}/${variable[variable.length - 1]}`,
|
||||
label: `${variable[0]}/${variable[variable.length - 1]}`,
|
||||
variable: `#${item.join('.')}#`,
|
||||
value_selector: item,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user