完善风控登录权限和模型能力配置
This commit is contained in:
@@ -5,11 +5,17 @@ from __future__ import annotations
|
||||
import asyncio
|
||||
import hashlib
|
||||
import json
|
||||
import sys
|
||||
from datetime import UTC, datetime
|
||||
from pathlib import Path
|
||||
|
||||
from sqlalchemy import text
|
||||
|
||||
from app.infrastructure.db import SessionFactory
|
||||
PROJECT_ROOT = Path(__file__).resolve().parents[1]
|
||||
if str(PROJECT_ROOT) not in sys.path:
|
||||
sys.path.insert(0, str(PROJECT_ROOT))
|
||||
|
||||
from app.infrastructure.db import SessionFactory # noqa: E402
|
||||
|
||||
ADMIN_USER_ID = 9003
|
||||
ENDPOINT_CODE = "deepseek-flash"
|
||||
@@ -53,7 +59,12 @@ async def seed() -> None:
|
||||
status='active', reviewer_id=:admin_id, reviewed_at=:now, updated_at=:now
|
||||
"""), {
|
||||
"endpoint_code": ENDPOINT_CODE,
|
||||
"capabilities": json.dumps(["chat", "intent_classification", "risk_answer"]),
|
||||
"capabilities": json.dumps([
|
||||
"chat",
|
||||
"intent_classification",
|
||||
"risk_answer",
|
||||
"text_generation",
|
||||
]),
|
||||
"data_levels": json.dumps(["internal"]),
|
||||
"admin_id": ADMIN_USER_ID,
|
||||
"now": now,
|
||||
|
||||
Reference in New Issue
Block a user