mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
Merge branch 'feat/r2' into deploy/rag-dev
This commit is contained in:
commit
2db0b19044
@ -1,5 +1,5 @@
|
|||||||
from collections.abc import Sequence
|
from collections.abc import Sequence
|
||||||
from typing import cast
|
from typing import Any, cast
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
@ -104,7 +104,7 @@ class RAGPipelineVariable(BaseModel):
|
|||||||
max_length: int | None = Field(
|
max_length: int | None = Field(
|
||||||
description="max length, applicable to text-input, paragraph, and file-list", default=0
|
description="max length, applicable to text-input, paragraph, and file-list", default=0
|
||||||
)
|
)
|
||||||
default_value: str | None = Field(description="default value", default="")
|
default_value: Any = Field(description="default value", default="")
|
||||||
placeholder: str | None = Field(description="placeholder", default="")
|
placeholder: str | None = Field(description="placeholder", default="")
|
||||||
unit: str | None = Field(description="unit, applicable to Number", default="")
|
unit: str | None = Field(description="unit, applicable to Number", default="")
|
||||||
tooltips: str | None = Field(description="helpful text", default="")
|
tooltips: str | None = Field(description="helpful text", default="")
|
||||||
|
|||||||
@ -47,6 +47,7 @@ pipeline_variable_fields = {
|
|||||||
"belong_to_node_id": fields.String,
|
"belong_to_node_id": fields.String,
|
||||||
"max_length": fields.Integer,
|
"max_length": fields.Integer,
|
||||||
"required": fields.Boolean,
|
"required": fields.Boolean,
|
||||||
|
"unit": fields.String,
|
||||||
"default_value": fields.Raw,
|
"default_value": fields.Raw,
|
||||||
"options": fields.List(fields.String),
|
"options": fields.List(fields.String),
|
||||||
"placeholder": fields.String,
|
"placeholder": fields.String,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user