mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-02 02:29:08 +00:00
24 lines
No EOL
623 B
Python
24 lines
No EOL
623 B
Python
from pydantic import BaseModel, ConfigDict
|
|
from typing import Any, List, Literal
|
|
from .base import IDModel, TimestampModel
|
|
|
|
class PodcastBase(BaseModel):
|
|
title: str
|
|
podcast_transcript: List[Any]
|
|
file_location: str = ""
|
|
search_space_id: int
|
|
|
|
class PodcastCreate(PodcastBase):
|
|
pass
|
|
|
|
class PodcastUpdate(PodcastBase):
|
|
pass
|
|
|
|
class PodcastRead(PodcastBase, IDModel, TimestampModel):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
class PodcastGenerateRequest(BaseModel):
|
|
type: Literal["DOCUMENT", "CHAT"]
|
|
ids: List[int]
|
|
search_space_id: int
|
|
podcast_title: str = "SurfSense Podcast" |