From 2d3a7e4ce45f377029a8311efd4f531dc68f6751 Mon Sep 17 00:00:00 2001 From: inter Date: Mon, 8 Sep 2025 16:36:12 +0800 Subject: [PATCH] Add File --- .../apps/system/schemas/ai_model_schema.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 backend/apps/system/schemas/ai_model_schema.py diff --git a/backend/apps/system/schemas/ai_model_schema.py b/backend/apps/system/schemas/ai_model_schema.py new file mode 100644 index 0000000..8b5946b --- /dev/null +++ b/backend/apps/system/schemas/ai_model_schema.py @@ -0,0 +1,29 @@ + +from typing import List +from pydantic import BaseModel + +from common.core.schemas import BaseCreatorDTO + +class AiModelItem(BaseModel): + name: str + model_type: int + base_model: str + supplier: int + protocol: int + default_model: bool = False + +class AiModelGridItem(AiModelItem, BaseCreatorDTO): + pass + +class AiModelConfigItem(BaseModel): + key: str + val: object + name: str + +class AiModelCreator(AiModelItem): + api_domain: str + api_key: str + config_list: List[AiModelConfigItem] + +class AiModelEditor(AiModelCreator, BaseCreatorDTO): + pass \ No newline at end of file