From c745abf6c899667be30c311db9e7c3dc78b991ec Mon Sep 17 00:00:00 2001 From: Chukwuma Nwaugha Date: Tue, 12 Nov 2024 13:39:09 +0000 Subject: [PATCH] return content_category from the server --- api/src/utils/audiocast_utils.py | 1 + api/src/utils/generate_audiocast.py | 1 + api/src/utils/get_audiocast.py | 1 + 3 files changed, 3 insertions(+) diff --git a/api/src/utils/audiocast_utils.py b/api/src/utils/audiocast_utils.py index 46c671e..97b6326 100644 --- a/api/src/utils/audiocast_utils.py +++ b/api/src/utils/audiocast_utils.py @@ -15,6 +15,7 @@ class GenerateAudioCastResponse(BaseModel): script: str source_content: str chats: List[SessionChatItem] + category: ContentCategory title: str | None created_at: str | None diff --git a/api/src/utils/generate_audiocast.py b/api/src/utils/generate_audiocast.py index 546d680..3febb58 100644 --- a/api/src/utils/generate_audiocast.py +++ b/api/src/utils/generate_audiocast.py @@ -93,4 +93,5 @@ def _run_on_background(): created_at=datetime.now().strftime("%Y-%m-%d %H:%M"), chats=session_data.chats, title=title, + category=session_data.category, ) diff --git a/api/src/utils/get_audiocast.py b/api/src/utils/get_audiocast.py index 17febc7..3bb96b1 100644 --- a/api/src/utils/get_audiocast.py +++ b/api/src/utils/get_audiocast.py @@ -41,4 +41,5 @@ def get_audiocast(session_id: str): created_at=created_at, chats=session_data.chats, title=title, + category=session_data.category, )