fix(llm): add fetch-models endpoint, fix SQL Lab INSERT (client_id truncation, sync mode, target_column, timestamp normalization)

- Add POST /api/llm/providers/fetch-models route with LLMClient.fetch_models()
- Add target_column to TranslationJob model/schema/service/orchestrator
- Fix SQL Lab execute: truncate client_id to 11 chars (varchar(11))
- Switch SQL Lab to sync mode (runAsync: false) — no Celery workers
- Fix polling: unwrap nested result from Superset query API
- Fix ClickHouse timestamp: normalize float timestamps to YYYY-MM-DD
This commit is contained in:
2026-05-13 20:06:15 +03:00
parent 39ab647851
commit a3c7c402b7
276 changed files with 1923 additions and 1822 deletions

View File

@@ -4,7 +4,6 @@
<!--
@UX_STATE: Loading -> Default
@COMPLEXITY: 3
@SEMANTICS: git, commit, modal, version_control, diff
@PURPOSE: Модальное окно для создания коммита с просмотром изменений (diff).
@LAYER: Component
@@ -35,7 +34,7 @@
let generatingMessage = $state(false);
// [/SECTION]
// [DEF:handleGenerateMessage:Function]
// #region handleGenerateMessage:Function [TYPE Function]
/**
* @purpose Generates a commit message using LLM.
*/
@@ -58,9 +57,9 @@
generatingMessage = false;
}
}
// [/DEF:handleGenerateMessage:Function]
// #endregion handleGenerateMessage:Function
// [DEF:loadStatus:Function]
// #region loadStatus:Function [TYPE Function]
/**
* @purpose Загружает текущий статус репозитория и diff.
* @pre dashboardId должен быть валидным.
@@ -101,9 +100,9 @@
loading = false;
}
}
// [/DEF:loadStatus:Function]
// #endregion loadStatus:Function
// [DEF:handleCommit:Function]
// #region handleCommit:Function [TYPE Function]
/**
* @purpose Создает коммит с указанным сообщением.
* @pre message не должно быть пустым.
@@ -128,7 +127,7 @@
committing = false;
}
}
// [/DEF:handleCommit:Function]
// #endregion handleCommit:Function
$effect(() => {
if (show) loadStatus();