返回 Pixelle-Video
__init__.py
根目录 / api / schemas / __init__.py
1 # Copyright (C) 2025 AIDC-AI
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 # See the License for the specific language governing permissions and
11 # limitations under the License.
12
13 """
14 API Schemas (Pydantic models)
15 """
16
17 from api.schemas.base import BaseResponse, ErrorResponse
18 from api.schemas.llm import LLMChatRequest, LLMChatResponse
19 from api.schemas.tts import TTSSynthesizeRequest, TTSSynthesizeResponse
20 from api.schemas.image import ImageGenerateRequest, ImageGenerateResponse
21 from api.schemas.content import (
22 NarrationGenerateRequest,
23 NarrationGenerateResponse,
24 ImagePromptGenerateRequest,
25 ImagePromptGenerateResponse,
26 TitleGenerateRequest,
27 TitleGenerateResponse,
28 )
29 from api.schemas.video import (
30 VideoGenerateRequest,
31 VideoGenerateResponse,
32 VideoGenerateAsyncResponse,
33 )
34
35 __all__ = [
36 # Base
37 "BaseResponse",
38 "ErrorResponse",
39 # LLM
40 "LLMChatRequest",
41 "LLMChatResponse",
42 # TTS
43 "TTSSynthesizeRequest",
44 "TTSSynthesizeResponse",
45 # Image
46 "ImageGenerateRequest",
47 "ImageGenerateResponse",
48 # Content
49 "NarrationGenerateRequest",
50 "NarrationGenerateResponse",
51 "ImagePromptGenerateRequest",
52 "ImagePromptGenerateResponse",
53 "TitleGenerateRequest",
54 "TitleGenerateResponse",
55 # Video
56 "VideoGenerateRequest",
57 "VideoGenerateResponse",
58 "VideoGenerateAsyncResponse",
59 ]
60
61
61 lines PYTHON