迁移逻辑过于激进,用户手动删除 [1m]] 后会被自动加回。 现在将 migrateOpusToOpus1m 改为 no-op,保留用户的手动模型选择。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
513 B
TypeScript
16 lines
513 B
TypeScript
import { logEvent } from '../services/analytics/index.js'
|
|
import { isOpus1mMergeEnabled } from '../utils/model/model.js'
|
|
|
|
/**
|
|
* Migration disabled: users who manually remove [1m] suffix should not
|
|
* have it automatically re-added. The migration was too aggressive and
|
|
* didn't respect user choice.
|
|
*/
|
|
export function migrateOpusToOpus1m(): void {
|
|
// No-op - respect user's manual model choice
|
|
if (!isOpus1mMergeEnabled()) {
|
|
return
|
|
}
|
|
logEvent('tengu_opus_to_opus1m_migration', { skipped: true })
|
|
}
|