mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-09 11:37:25 +00:00
be3734ffda
* feat(wizard): rework agent onboarding flow * fix(web): support LAN development access * fix(wizard): parse ranked model selection entries * feat(wizard): add inbound bot verification * feat(wizard): add floating page bot verification * fix(wizard): repair HTTP bot inbound test setup * feat(wizard): streamline custom model onboarding * feat(wizard): label page bot test preview * style(space): apply ruff formatting * fix(wizard): polish AI engine onboarding * fix(wizard): clarify local account message test * feat(wizard): animate AI engine transitions * fix(wizard): align AI engine setup headers --------- Co-authored-by: langbot-dev <langbot@users.noreply.github.com> Co-authored-by: RockChinQ <rockchinq@gmail.com>
57 lines
1.4 KiB
Python
57 lines
1.4 KiB
Python
# [
|
|
# {
|
|
# "uuid": "7652ebdb-54dc-412c-a830-e9268ac88471",
|
|
# "model_id": "claude-opus-4-5-20251101",
|
|
# "display_name": {
|
|
# "en_US": "claude-opus-4-5-20251101",
|
|
# "zh_Hans": "claude-opus-4-5-20251101"
|
|
# },
|
|
# "description": {},
|
|
# "provider": "anthropic",
|
|
# "category": "chat",
|
|
# "icon_url": "Claude.Color",
|
|
# "tags": {},
|
|
# "is_featured": true,
|
|
# "featured_order": 999,
|
|
# "model_ratio": 2.5,
|
|
# "completion_ratio": 5,
|
|
# "quota_type": 0,
|
|
# "model_price": 0,
|
|
# "input_credits": 500,
|
|
# "output_credits": 2500,
|
|
# "vendor_id": 1,
|
|
# "vendor_name": "Anthropic",
|
|
# "vendor_icon": "Claude.Color",
|
|
# "supported_endpoints": [
|
|
# "anthropic",
|
|
# "openai"
|
|
# ],
|
|
# "status": "active",
|
|
# "metadata": null,
|
|
# "created_at": "2025-12-30T22:23:38.337207+08:00",
|
|
# "updated_at": "2025-12-30T22:23:38.337207+08:00"
|
|
# }
|
|
# ]
|
|
|
|
import pydantic
|
|
|
|
|
|
class SpaceModel(pydantic.BaseModel):
|
|
uuid: str
|
|
model_id: str
|
|
provider: str
|
|
category: str # chat / embedding
|
|
llm_abilities: list[str] | None = None
|
|
is_featured: bool = False
|
|
featured_order: int = 0
|
|
status: str
|
|
created_at: str | None = None
|
|
updated_at: str | None = None
|
|
|
|
|
|
class SpaceModelSelection(pydantic.BaseModel):
|
|
"""Minimal model identity returned by the ranked selection endpoint."""
|
|
|
|
uuid: str
|
|
model_id: str
|