Skip to content

Commit f706e5b

Browse files
Changes Accepted from Copilot - 2
Co-authored-by: Copilot <[email protected]>
1 parent bed9e92 commit f706e5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/backend/history/cosmosdbservice.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,13 @@ async def create_conversation(self, user_id, title=""):
7979
"updatedAt": datetime.utcnow().isoformat(),
8080
"userId": user_id,
8181
"title": title,
82+
# Metadata field for storing additional information about the conversation.
83+
# This field is currently an empty dictionary but can be extended in the future.
84+
# Metadata field for storing additional information about the conversation.
85+
# This field is currently an empty dictionary but can be extended in the future.
8286
"metadata": {}
8387
}
88+
validate_metadata(conversation["metadata"])
8489
# TODO: add some error handling based on the output of the upsert_item call
8590
resp = await self.container_client.upsert_item(conversation)
8691
if resp:

0 commit comments

Comments
 (0)