Files
qwenwork-autoreg/qw_limits.sql
T

10 lines
1.0 KiB
SQL

\set ON_ERROR_STOP on
update tokens set model_limits = $$default,qw-flash,qw-standard,qw-pro,qw-advanced,qw-flagship,qw-qwen4-max,qw-qwen3.8-max,qw-qwen3.8-flash,qw-deepseek-v4.1-flash,qw-glm-5.3,qw-glm-5.3-flash,qw-kimi-k3.1-pro,qw-minimax-m3.1-flash$$
where deleted_at is null and model_limits is null;
update tokens set model_limits = model_limits || $$,qw-flash,qw-standard,qw-pro,qw-advanced,qw-flagship,qw-qwen4-max,qw-qwen3.8-max,qw-qwen3.8-flash,qw-deepseek-v4.1-flash,qw-glm-5.3,qw-glm-5.3-flash,qw-kimi-k3.1-pro,qw-minimax-m3.1-flash$$
where deleted_at is null and model_limits is not null and position($$qw-flash$$ in model_limits) = 0;
update channels set status = 1 where id = 313854;
update abilities set enabled = true where channel_id = 313854;
select $$ch$$, status from channels where id = 313854;
select $$ab$$, count(*) filter (where enabled), count(*) from abilities where channel_id = 313854;
select $$tk$$, count(*) from tokens where deleted_at is null and position($$qw-flash$$ in model_limits) > 0;