Skip to content

Commit

Permalink
return content_category from the server
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 12, 2024
1 parent c368006 commit c745abf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/src/utils/audiocast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class GenerateAudioCastResponse(BaseModel):
script: str
source_content: str
chats: List[SessionChatItem]
category: ContentCategory
title: str | None
created_at: str | None

Expand Down
1 change: 1 addition & 0 deletions api/src/utils/generate_audiocast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
1 change: 1 addition & 0 deletions api/src/utils/get_audiocast.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ def get_audiocast(session_id: str):
created_at=created_at,
chats=session_data.chats,
title=title,
category=session_data.category,
)

0 comments on commit c745abf

Please sign in to comment.