mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 08:06:19 +00:00
Route relaxed requests through the configured scheduler and keep the session primary during preferred-mode spillover. Default new settings to strict while preserving saved modes. Co-authored-by: Codex <noreply@openai.com>
10 lines
553 B
SQL
10 lines
553 B
SQL
-- 会话主账号优先作为独立模式,保留已有亲和配置
|
|
alter table runtime_settings
|
|
drop constraint runtime_settings_openai_account_affinity_check,
|
|
add constraint runtime_settings_openai_account_affinity_check
|
|
check (openai_account_affinity in ('relaxed', 'preferred', 'strict')),
|
|
alter column openai_account_affinity set default 'strict';
|
|
|
|
-- 尚未发布过配置的初始记录采用严格模式,已经保存的设置保留原选项
|
|
update runtime_settings set openai_account_affinity = 'strict' where config_revision = 1;
|