mirror of https://github.com/langgenius/dify.git
feat: support llm single run
This commit is contained in:
parent
ffb698922a
commit
c330f89c77
|
|
@ -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,
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ export type ValueSelector = string[] // [nodeId, key | obj key path]
|
|||
|
||||
export type Variable = {
|
||||
variable: string
|
||||
label?: string
|
||||
value_selector: ValueSelector
|
||||
variable_type?: VarKindType
|
||||
value?: string
|
||||
|
|
|
|||
Loading…
Reference in New Issue