feat: refonte bdd, ajout super-admin, pages de config par niveau, avatar natif et sélecteur de modèles par requête
Build and Push Docker Image / build-and-push (push) Successful in 42s

This commit is contained in:
xavier committed 2026-10-07 18:39:11 +02:00
1 parent 4d5046e8d0
commit 2eb3acceea
6 files changed
+464 -493

No files matched your search

+3 -13
View File
@@ -6,12 +6,10 @@ 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)
openrouter_api_key: Optional[str] = None
openrouter_management_key: Optional[str] = None
groq_api_key: Optional[str] = None
@@ -27,25 +25,20 @@ class LoginRequest(BaseModel):
password: str
totp_code: str
# --- GESTION DES PROJETS ---
class ProjectBase(BaseModel):
title: str
class ProjectCreate(ProjectBase):
pass
class ProjectCreate(ProjectBase): pass
class ProjectResponse(ProjectBase):
id: int
created_at: datetime
is_pinned: bool
class Config:
from_attributes = True
class Config: from_attributes = True
class ProjectRename(BaseModel):
title: str
# --- GESTION DES MESSAGES ET ORCHESTRATION ---
class OrchestratorConfig(BaseModel):
workers: List[str]
prompter: Optional[str] = "gemini-3.5-flash-lite"
@@ -62,11 +55,8 @@ class MessageResponse(MessageBase):
id: int
created_at: datetime
project_id: int
class Config: from_attributes = True
class Config:
from_attributes = True
# --- UTILISATEUR ---
class PasswordChange(BaseModel):
old_password: str
new_password: str