feat: pass params from HTTP post body

This commit is contained in:
Li Xin
2025-04-19 22:11:41 +08:00
parent b96e47746e
commit 4d33aeed6a
2 changed files with 15 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
# Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
# SPDX-License-Identifier: MIT
from typing import List, Optional, Union, Dict, Any
from typing import List, Optional, Union
from pydantic import BaseModel, Field
@@ -60,3 +60,7 @@ class TTSRequest(BaseModel):
1, description="Whether to use frontend processing"
)
frontend_type: Optional[str] = Field("unitTson", description="Frontend type")
class GeneratePodcastRequest(BaseModel):
content: str = Field(..., description="The content of the podcast")