mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-20 23:21:06 +02:00
feat(schemas): add LlmSetupStatusRead for server-authoritative onboarding
This commit is contained in:
parent
e32413588e
commit
1c2c480b92
2 changed files with 17 additions and 2 deletions
|
|
@ -43,6 +43,7 @@ from .model_connections import (
|
|||
ConnectionCreate,
|
||||
ConnectionRead,
|
||||
ConnectionUpdate,
|
||||
LlmSetupStatusRead,
|
||||
ModelCreate,
|
||||
ModelPreviewRead,
|
||||
ModelProviderRead,
|
||||
|
|
@ -185,13 +186,14 @@ __all__ = [
|
|||
"InviteInfoResponse",
|
||||
"InviteRead",
|
||||
"InviteUpdate",
|
||||
# Auth schemas
|
||||
"LlmSetupStatusRead",
|
||||
# Log schemas
|
||||
"LogBase",
|
||||
"LogCreate",
|
||||
"LogFilter",
|
||||
"LogRead",
|
||||
"LogUpdate",
|
||||
# Auth schemas
|
||||
"LogoutAllResponse",
|
||||
"LogoutRequest",
|
||||
"LogoutResponse",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import uuid
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
from typing import Any, Literal
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
|
|
@ -146,3 +146,16 @@ class ModelRolesUpdate(BaseModel):
|
|||
chat_model_id: int | None = None
|
||||
vision_model_id: int | None = None
|
||||
image_gen_model_id: int | None = None
|
||||
|
||||
|
||||
class LlmSetupStatusRead(BaseModel):
|
||||
"""Server-authoritative verdict for the per-workspace LLM onboarding gate.
|
||||
|
||||
``status`` is the only thing the frontend gate acts on; ``source`` is
|
||||
informational and ``can_configure`` selects the onboarding vs. blocked
|
||||
screen for members who cannot manage models.
|
||||
"""
|
||||
|
||||
status: Literal["ready", "needs_setup"]
|
||||
source: Literal["global_config", "models", "none"]
|
||||
can_configure: bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue