Skip to content

Commit

Permalink
fix: Set name to None if absent
Browse files Browse the repository at this point in the history
  • Loading branch information
whiterabbit1983 committed Jun 5, 2024
1 parent d313315 commit 9b58614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents-api/agents_api/models/entry/delete_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def delete_entries(entries: list[Entry]) -> tuple[str, dict]:
f'to_uuid("{e.session_id}")',
e.source,
e.role.value if hasattr(e.role, "value") else e.role,
e.name,
e.name or None,
content_to_json(e.content),
e.token_count,
e.tokenizer,
Expand Down

0 comments on commit 9b58614

Please sign in to comment.