mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
add to http request node convert tests
This commit is contained in:
@ -400,10 +400,14 @@ class ApplicationManager:
|
||||
config=val['config']
|
||||
)
|
||||
)
|
||||
elif typ in [VariableEntity.Type.TEXT_INPUT.value, VariableEntity.Type.PARAGRAPH.value]:
|
||||
elif typ in [
|
||||
VariableEntity.Type.TEXT_INPUT.value,
|
||||
VariableEntity.Type.PARAGRAPH.value,
|
||||
VariableEntity.Type.NUMBER.value,
|
||||
]:
|
||||
properties['variables'].append(
|
||||
VariableEntity(
|
||||
type=VariableEntity.Type.TEXT_INPUT,
|
||||
type=VariableEntity.Type.value_of(typ),
|
||||
variable=variable[typ].get('variable'),
|
||||
description=variable[typ].get('description'),
|
||||
label=variable[typ].get('label'),
|
||||
|
||||
@ -94,6 +94,7 @@ class VariableEntity(BaseModel):
|
||||
TEXT_INPUT = 'text-input'
|
||||
SELECT = 'select'
|
||||
PARAGRAPH = 'paragraph'
|
||||
NUMBER = 'number'
|
||||
|
||||
@classmethod
|
||||
def value_of(cls, value: str) -> 'VariableEntity.Type':
|
||||
|
||||
Reference in New Issue
Block a user