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 16, 2024
1 parent cb534b9 commit 1847be2
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 1847be2

Please sign in to comment.