This commit is contained in:
jyong
2025-06-17 14:04:55 +08:00
parent f37e28a368
commit 1d2ee9020c
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
from collections.abc import Sequence
from typing import cast
from typing import Any, cast
from uuid import uuid4
from pydantic import BaseModel, Field
@ -104,7 +104,7 @@ class RAGPipelineVariable(BaseModel):
max_length: int | None = Field(
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="")
unit: str | None = Field(description="unit, applicable to Number", default="")
tooltips: str | None = Field(description="helpful text", default="")