__init__.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. API Schemas (Pydantic models)
  14. """
  15. from api.schemas.base import BaseResponse, ErrorResponse
  16. from api.schemas.llm import LLMChatRequest, LLMChatResponse
  17. from api.schemas.tts import TTSSynthesizeRequest, TTSSynthesizeResponse
  18. from api.schemas.image import ImageGenerateRequest, ImageGenerateResponse
  19. from api.schemas.content import (
  20. NarrationGenerateRequest,
  21. NarrationGenerateResponse,
  22. ImagePromptGenerateRequest,
  23. ImagePromptGenerateResponse,
  24. TitleGenerateRequest,
  25. TitleGenerateResponse,
  26. )
  27. from api.schemas.video import (
  28. VideoGenerateRequest,
  29. VideoGenerateResponse,
  30. VideoGenerateAsyncResponse,
  31. )
  32. __all__ = [
  33. # Base
  34. "BaseResponse",
  35. "ErrorResponse",
  36. # LLM
  37. "LLMChatRequest",
  38. "LLMChatResponse",
  39. # TTS
  40. "TTSSynthesizeRequest",
  41. "TTSSynthesizeResponse",
  42. # Image
  43. "ImageGenerateRequest",
  44. "ImageGenerateResponse",
  45. # Content
  46. "NarrationGenerateRequest",
  47. "NarrationGenerateResponse",
  48. "ImagePromptGenerateRequest",
  49. "ImagePromptGenerateResponse",
  50. "TitleGenerateRequest",
  51. "TitleGenerateResponse",
  52. # Video
  53. "VideoGenerateRequest",
  54. "VideoGenerateResponse",
  55. "VideoGenerateAsyncResponse",
  56. ]