From 4f3eeb49ce4c6bcbd60136884407315d13cfca1d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 11 Sep 2026 15:31:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(migration):=20m0029=20=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E9=92=B1=E5=8C=85=E9=97=A8=E7=A6=81=E5=8F=82=E6=95=B0=E2=80=94?= =?UTF-8?q?=E2=80=94llm=5Fwallet=5Fbalance=5Fthreshold(=E7=BC=BA=E7=9C=815?= =?UTF-8?q?=E5=85=83)/llm=5Fwallet=5Ftodo=5Frole(=E7=BC=BA=E7=9C=81operato?= =?UTF-8?q?r);=E9=85=8D=E5=A5=97pipeline-llm=206d0ecc5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/migrations/m0029_llm_wallet_gate_params.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 deploy/migrations/m0029_llm_wallet_gate_params.json diff --git a/deploy/migrations/m0029_llm_wallet_gate_params.json b/deploy/migrations/m0029_llm_wallet_gate_params.json new file mode 100644 index 0000000..1c6995c --- /dev/null +++ b/deploy/migrations/m0029_llm_wallet_gate_params.json @@ -0,0 +1,13 @@ +{ + "id": "m0029", + "title": "模型账号钱包门禁参数(2026-09-11 用户定夺:同供应商多账号各一个钱包=llm_account.balance;余额<阈值的账号从轮询集剔除+派生待办给属主机构operator催充值;出账成功后按流水account_id扣减对应钱包;同会话粘性账号省上游缓存钱,跨会话轮询)。llm_wallet_balance_threshold=门禁阈值元(缺省5);llm_wallet_todo_role=待办接收角色名(缺省operator,按.后缀动态匹配不锁orgtypeid)。代码有缺省兜底,参数行为可调项", + "backup_tables": ["params"], + "up": [ + {"op": "params_set", "key": "llm_wallet_balance_threshold", "value": "5"}, + {"op": "params_set", "key": "llm_wallet_todo_role", "value": "operator"} + ], + "down": [ + {"op": "params_del", "key": "llm_wallet_balance_threshold"}, + {"op": "params_del", "key": "llm_wallet_todo_role"} + ] +}