Skip to content

Commit

Permalink
fix: Remove ID field
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Sep 14, 2024
1 parent 151c2fb commit a8b8e45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agents-api/agents_api/routers/sessions/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ async def chat(
for m in past_messages:
with suppress(KeyError):
del m["created_at"]
with suppress(KeyError):
del m["id"]

messages = past_messages + new_messages

Expand Down

0 comments on commit a8b8e45

Please sign in to comment.