Closed creatorrr closed 2 weeks ago
fix: temporary hotfix for datetime serialization in chat messages
Applies a temporary hotfix for datetime serialization in chat.py and sorts entries by created_at in get_history.py.
chat.py
created_at
get_history.py
Key points:
role
content
user
Generated with :heart: by ellipsis.dev
fix: temporary hotfix for datetime serialization in chat messages
Summary:
Applies a temporary hotfix for datetime serialization in
chat.py
and sorts entries bycreated_at
inget_history.py
.Key points:
chat.py
: Temporary fix for non-serializable datetime objects by converting messages to dictionaries withrole
,content
, anduser
fields.get_history.py
: Sorts entries bycreated_at
to ensure correct order.Generated with :heart: by ellipsis.dev