mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
23 lines
882 B
Python
23 lines
882 B
Python
"""
|
|
Legacy podcast task for old chat system.
|
|
|
|
NOTE: The old Chat model has been removed. This module is kept for backwards
|
|
compatibility but the generate_chat_podcast function will raise an error
|
|
if called. Use generate_content_podcast_task in celery_tasks/podcast_tasks.py
|
|
for new-chat podcast generation instead.
|
|
"""
|
|
|
|
from app.db import Podcast # noqa: F401 - imported for backwards compatibility
|
|
|
|
|
|
async def generate_chat_podcast(*args, **kwargs):
|
|
"""
|
|
Legacy function for generating podcasts from old chat system.
|
|
|
|
This function is deprecated as the old Chat model has been removed.
|
|
Use generate_content_podcast_task for new-chat podcast generation.
|
|
"""
|
|
raise NotImplementedError(
|
|
"generate_chat_podcast is deprecated. The old Chat model has been removed. "
|
|
"Use generate_content_podcast_task for podcast generation from new-chat."
|
|
)
|