Add audio_text field in room endpoint
Browse files- src/api/v1/room.py +2 -0
src/api/v1/room.py
CHANGED
|
@@ -27,6 +27,7 @@ class ChatMessageResponse(BaseModel):
|
|
| 27 |
id: str
|
| 28 |
role: str
|
| 29 |
content: str
|
|
|
|
| 30 |
created_at: str
|
| 31 |
sources: List[MessageSourceResponse] = []
|
| 32 |
|
|
@@ -101,6 +102,7 @@ async def get_room(
|
|
| 101 |
id=msg.id,
|
| 102 |
role=msg.role,
|
| 103 |
content=msg.content,
|
|
|
|
| 104 |
created_at=msg.created_at.isoformat(),
|
| 105 |
sources=[
|
| 106 |
MessageSourceResponse(
|
|
|
|
| 27 |
id: str
|
| 28 |
role: str
|
| 29 |
content: str
|
| 30 |
+
audio_text: Optional[str] = None
|
| 31 |
created_at: str
|
| 32 |
sources: List[MessageSourceResponse] = []
|
| 33 |
|
|
|
|
| 102 |
id=msg.id,
|
| 103 |
role=msg.role,
|
| 104 |
content=msg.content,
|
| 105 |
+
audio_text=msg.audio_text,
|
| 106 |
created_at=msg.created_at.isoformat(),
|
| 107 |
sources=[
|
| 108 |
MessageSourceResponse(
|