feat: 初始提交

This commit is contained in:
anonymous
2025-10-21 09:38:26 +08:00
committed by t59688
parent 2965b8e28f
commit c9fc816fab
175 changed files with 23968 additions and 87 deletions

View File

@@ -0,0 +1,20 @@
from typing import Optional
from pydantic import BaseModel, HttpUrl, Field
class LLMConfigBase(BaseModel):
llm_provider_url: Optional[HttpUrl] = Field(default=None, description="自定义 LLM 服务地址")
llm_provider_api_key: Optional[str] = Field(default=None, description="自定义 LLM API Key")
llm_provider_model: Optional[str] = Field(default=None, description="自定义模型名称")
class LLMConfigCreate(LLMConfigBase):
pass
class LLMConfigRead(LLMConfigBase):
user_id: int
class Config:
from_attributes = True