17 lines
462 B
Python
17 lines
462 B
Python
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel, ConfigDict, Field
|
|
|
|
|
|
class TaskAcceptedResponse(BaseModel):
|
|
model_config = ConfigDict(populate_by_name=True, serialize_by_alias=True)
|
|
|
|
task_id: str = Field(alias="taskId")
|
|
thread_id: str = Field(alias="threadId")
|
|
run_id: str = Field(alias="runId")
|
|
created: bool
|
|
|
|
|
|
class AsrTranscribeResponse(BaseModel):
|
|
transcript: str = Field(description="Transcribed text from audio")
|