fix for stats and model selection
Weekly OSV dependency audit / dependency-audit (push) Failing after 5s
Weekly OSV dependency audit / dependency-audit (push) Failing after 5s
This commit is contained in:
1 parent
bd6353804b
commit
b99ce2aa10
5 files changed
+116
-24
No files matched your search
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE sessions ADD COLUMN model_without_qwen TEXT
|
||||
CHECK (model_without_qwen IS NULL OR model_without_qwen IN (
|
||||
'deepseek-v4-flash-0731',
|
||||
'deepseek-v4-pro',
|
||||
'glm-5.2',
|
||||
'glm-5.3-flash'
|
||||
));
|
||||
UPDATE sessions SET model_without_qwen = CASE
|
||||
WHEN model = 'qwen3.8-flash-next' THEN NULL
|
||||
ELSE model
|
||||
END;
|
||||
ALTER TABLE sessions DROP COLUMN model;
|
||||
ALTER TABLE sessions RENAME COLUMN model_without_qwen TO model;
|
||||
@@ -0,0 +1,11 @@
|
||||
ALTER TABLE sessions ADD COLUMN model_with_qwen TEXT
|
||||
CHECK (model_with_qwen IS NULL OR model_with_qwen IN (
|
||||
'deepseek-v4-flash-0731',
|
||||
'deepseek-v4-pro',
|
||||
'glm-5.2',
|
||||
'glm-5.3-flash',
|
||||
'qwen3.8-flash-next'
|
||||
));
|
||||
UPDATE sessions SET model_with_qwen = model;
|
||||
ALTER TABLE sessions DROP COLUMN model;
|
||||
ALTER TABLE sessions RENAME COLUMN model_with_qwen TO model;
|
||||
Reference in new issue
Block a user