INNER CODE UNIT · Python
PodcastRequest
SPThole/CoexistAI · app.py:409
class PodcastRequest(BaseModel):
text: str = None
prompt: str = None # Optional theme for the podcast
class BasicTTSRequest(BaseModel):
text: str = None
voice: str = "am_santa"
lang: str = "en-us"
filename: str = ""
class KnowledgeBaseRequest(BaseModel):
document_paths: list[str] # List of paths to create knowledge base from
class CrawlerRequest(BaseModel):
url_or_urls: Union[str, List[str]] # Single URL to crawl or list of URLs to scrape
keywords: Optional[List[str]] = [""] # Optional keywords to filter content
depth: Optional[int] = None # Crawl depth for crawling (None for full website crawl)
crawl: bool = True # Whether to crawl (True) or process URLs directly (False)