feat: audit log всех действий + GLM-5.1 + домен infosmeta.ru

- Таблица audit_log + middleware для логирования всех API-запросов
- Раздел "Журнал" в админке с фильтрами по пользователю/действию
- Переход на GLM-5.1 с отключённым reasoning (thinking: disabled)
- max_tokens 2000→4096, timeout 60→120с
- Домен smeta.kazin.ru → infosmeta.ru во всех файлах

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-04-09 15:51:54 +10:00
co-authored by Claude Opus 4.6
parent adeb92f4d0
commit 1afa7adbaf
8 changed files with 235 additions and 14 deletions
+2 -1
View File
@@ -25,7 +25,7 @@ import httpx
ZAI_API_KEY = os.environ.get("ZAI_API_KEY", "")
ZAI_BASE_URL = os.environ.get("ZAI_BASE_URL", "https://open.bigmodel.cn/api/coding/paas/v4")
ZAI_MODEL = os.environ.get("ZAI_MODEL", "glm-5")
ZAI_MODEL = os.environ.get("ZAI_MODEL", "glm-5.1")
# Batch jobs storage
_jobs: dict[str, dict] = {}
@@ -231,6 +231,7 @@ async def analyze_structure(sample_files: list[str], target_file: str, task_desc
"temperature": 0.1,
"max_tokens": 4000,
"response_format": {"type": "json_object"},
"thinking": {"type": "disabled"},
},
)
resp.raise_for_status()