| import { |
| getSettingsForSource, |
| updateSettingsForSource, |
| } from '../utils/settings/settings.js' |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| export function migrateFennecToOpus(): void { |
| if (process.env.USER_TYPE !== 'ant') { |
| return |
| } |
|
|
| const settings = getSettingsForSource('userSettings') |
|
|
| const model = settings?.model |
| if (typeof model === 'string') { |
| if (model.startsWith('fennec-latest[1m]')) { |
| updateSettingsForSource('userSettings', { |
| model: 'opus[1m]', |
| }) |
| } else if (model.startsWith('fennec-latest')) { |
| updateSettingsForSource('userSettings', { |
| model: 'opus', |
| }) |
| } else if ( |
| model.startsWith('fennec-fast-latest') || |
| model.startsWith('opus-4-5-fast') |
| ) { |
| updateSettingsForSource('userSettings', { |
| model: 'opus[1m]', |
| fastMode: true, |
| }) |
| } |
| } |
| } |
|
|