mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-31 19:45:15 +02:00
refactor: remove chat-related fields and legacy podcast generation function
This commit is contained in:
parent
c2dcb2045d
commit
1cbb1b5d66
5 changed files with 50 additions and 20 deletions
|
|
@ -72,8 +72,7 @@ def generate_content_podcast_task(
|
|||
"""
|
||||
Celery task to generate podcast from source content (for new-chat).
|
||||
|
||||
Unlike generate_chat_podcast which requires a chat_id, this task
|
||||
generates a podcast directly from provided content.
|
||||
This task generates a podcast directly from provided content.
|
||||
|
||||
Args:
|
||||
source_content: The text content to convert into a podcast
|
||||
|
|
@ -164,8 +163,6 @@ async def _generate_content_podcast(
|
|||
podcast_transcript=serializable_transcript,
|
||||
file_location=file_path,
|
||||
search_space_id=search_space_id,
|
||||
chat_id=None, # No chat_id for new-chat podcasts
|
||||
chat_state_version=None,
|
||||
)
|
||||
session.add(podcast)
|
||||
await session.commit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue