Skip to content

Commit 0f8b9f9

Browse files
committed
fix: conversations endpoint type-hint
1 parent cafb3ef commit 0f8b9f9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/app/endpoints/conversations.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@
2323
conversation_responses: dict[int | str, dict[str, Any]] = {
2424
200: {
2525
"conversation_id": "123e4567-e89b-12d3-a456-426614174000",
26-
"session_data": {
27-
"session_id": "123e4567-e89b-12d3-a456-426614174000",
28-
"turns": [],
29-
"started_at": "2024-01-01T00:00:00Z",
30-
},
26+
"chat_history": [
27+
{
28+
"messages": [
29+
{"content": "Hi", "type": "user"},
30+
{"content": "Hello!", "type": "assistant"},
31+
],
32+
"started_at": "2024-01-01T00:00:00Z",
33+
"completed_at": "2024-01-01T00:00:05Z",
34+
}
35+
],
3136
},
3237
404: {
3338
"detail": {

0 commit comments

Comments
 (0)