fix: remove timestamps
This commit is contained in:
parent
85503fc669
commit
a0a87e2e3e
2 changed files with 0 additions and 5 deletions
|
|
@ -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"},
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue