feat: intégration du paramétrage obligatoire SMTP et optionnel des clés API lors du setup initial
Build and Push Docker Image / build-and-push (push) Successful in 42s
Build and Push Docker Image / build-and-push (push) Successful in 42s
This commit is contained in:
1 parent
8dd8d65b42
commit
22c640837c
5 files changed
+143
-53
No files matched your search
+10
-5
@@ -6,6 +6,14 @@ class AdminCreate(BaseModel):
|
||||
email: EmailStr
|
||||
username: str
|
||||
password: str
|
||||
# Serveur Mail (Obligatoire)
|
||||
smtp_host: str
|
||||
smtp_port: int
|
||||
smtp_user: str
|
||||
smtp_password: str
|
||||
# Clés API (Optionnelles)
|
||||
gemini_api_key: Optional[str] = None
|
||||
openrouter_api_key: Optional[str] = None
|
||||
|
||||
class LoginRequest(BaseModel):
|
||||
username: str
|
||||
@@ -24,10 +32,10 @@ class ProjectResponse(ProjectBase):
|
||||
created_at: datetime
|
||||
is_pinned: bool
|
||||
|
||||
class Config:
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
# --- NOUVEAU : Schémas pour les Messages ---
|
||||
# --- NOUVEAU : Schémas pour les Messages ---
|
||||
class MessageBase(BaseModel):
|
||||
role: str
|
||||
content: str
|
||||
@@ -40,8 +48,5 @@ class MessageResponse(MessageBase):
|
||||
created_at: datetime
|
||||
project_id: int
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
class ProjectRename(BaseModel):
|
||||
title: str
|
||||
Reference in new issue
Block a user