mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
refac
Co-Authored-By: Nil Puig <244631886+npuigm@users.noreply.github.com>
This commit is contained in:
parent
40d90286b6
commit
499ca282e5
1 changed files with 5 additions and 0 deletions
|
|
@ -127,6 +127,11 @@ def upgrade() -> None:
|
|||
|
||||
timestamp = message.get("timestamp", now)
|
||||
|
||||
try:
|
||||
timestamp = int(float(timestamp))
|
||||
except Exception as e:
|
||||
timestamp = now
|
||||
|
||||
# Normalize timestamp: convert ms to seconds, validate range
|
||||
if timestamp > 10_000_000_000:
|
||||
timestamp = timestamp // 1000
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue