diff --git a/modules/datamodels/datamodelChatbot.py b/modules/datamodels/datamodelChatbot.py index 243eb02c..04ac0788 100644 --- a/modules/datamodels/datamodelChatbot.py +++ b/modules/datamodels/datamodelChatbot.py @@ -11,7 +11,6 @@ class MessageItem(BaseModel, ModelMixin): role: str = Field(..., description="Message role (user or assistant)") content: str = Field(..., description="Message content") - timestamp: float = Field(..., description="Message timestamp (Unix timestamp)") class ChatMessageRequest(BaseModel, ModelMixin): @@ -70,7 +69,6 @@ register_model_labels( { "role": {"en": "Role", "fr": "RĂ´le"}, "content": {"en": "Content", "fr": "Contenu"}, - "timestamp": {"en": "Timestamp", "fr": "Horodatage"}, }, ) diff --git a/modules/features/chatBot/service.py b/modules/features/chatBot/service.py index 8fb35106..e9a9b360 100644 --- a/modules/features/chatBot/service.py +++ b/modules/features/chatBot/service.py @@ -365,7 +365,6 @@ async def post_message( item = MessageItem( role=role, content=msg.content.strip(), - timestamp=0.0, # TODO: Add proper timestamp handling ) messages.append(item) @@ -457,7 +456,6 @@ async def post_message_stream( MessageItem( role=role, content=content, - timestamp=0.0, # TODO: Add proper timestamp handling ) ) @@ -526,7 +524,6 @@ async def get_thread_messages_from_langgraph( { "role": ROLE_MAP.get(msg.type, msg.type), "content": content, - "timestamp": 0.0, } )