File size: 396 Bytes
9cd7aca
 
 
 
 
 
 
 
 
d8028fb
77e98bd
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from __future__ import annotations

from pydantic import BaseModel, Field


class SummaryRequest(BaseModel):
    transcript: str = Field(..., min_length=1)
    llm_model: str
    prompt: str = Field("Summarize the transcript below.")
    generate_title: bool = Field(default=True)


class SpeakerNameDetectionRequest(BaseModel):
    utterances: list = Field(..., min_length=1)
    llm_model: str