feat(admin-v2): add ProTable search, scenarios/quick_commands form, tests, remove quota_reset_interval
- Enable ProTable search on Accounts (username/email), Models (model_id/alias), Providers (display_name/name) with hideInSearch for non-searchable columns - Add scenarios (Select tags) and quick_commands (Form.List) to AgentTemplates create form, plus service type updates - Remove unused quota_reset_interval from ProviderKey model, key_pool SQL, handlers, and frontend types; add migration + bump schema to v11 - Add Vitest config, test setup, request interceptor tests (7 cases), authStore tests (8 cases) — all 15 passing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-- 20260331000001_accounts_llm_routing.sql
|
||||
-- 账号级 LLM 路由模式: relay=SaaS中转(Token池), local=本地直连
|
||||
ALTER TABLE accounts ADD COLUMN IF NOT EXISTS llm_routing TEXT NOT NULL DEFAULT 'local'
|
||||
CHECK (llm_routing IN ('relay', 'local'));
|
||||
|
||||
COMMENT ON COLUMN accounts.llm_routing IS 'LLM路由模式: relay=SaaS中转, local=本地直连';
|
||||
@@ -0,0 +1,3 @@
|
||||
-- 20260401000002_remove_quota_reset_interval.sql
|
||||
-- 移除未使用的 quota_reset_interval 字段 (RPM/TPM 限流已足够)
|
||||
ALTER TABLE provider_keys DROP COLUMN IF EXISTS quota_reset_interval;
|
||||
Reference in New Issue
Block a user