fix: wrong message timestamp (#2998)
* fix: messagem timestamp * [autofix.ci] apply automated fixes * feat: fix typing error in message.py --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
parent
3cd0161c9a
commit
8fffe73050
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class Message(Data):
|
|||
files: Optional[list[str | Image]] = Field(default=[])
|
||||
session_id: Optional[str] = Field(default="")
|
||||
timestamp: Annotated[str, BeforeValidator(_timestamp_to_str)] = Field(
|
||||
default=datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
|
||||
default_factory=lambda: datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
|
||||
)
|
||||
flow_id: Optional[str | UUID] = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue