fix(models): expose current Claude official lineup

This commit is contained in:
程序员阿江(Relakkes)
2026-07-22 17:42:19 +08:00
parent 91829e91a4
commit 29b17c8028
49 changed files with 845 additions and 154 deletions
+2 -2
View File
@@ -271,8 +271,8 @@ describe('Telegram command controller helpers', () => {
await controller.handleProviderCommand(allowed.ctx)
expect(deps.httpClient.activateOfficialProvider).toHaveBeenCalled()
expect(deps.httpClient.setCurrentModel).toHaveBeenCalledWith('claude-opus-4-7')
expect(runtimeModels).toEqual(['claude-opus-4-7'])
expect(deps.httpClient.setCurrentModel).toHaveBeenCalledWith('claude-opus-4-8')
expect(runtimeModels).toEqual(['claude-opus-4-8'])
expect(allowed.replies[0]).toContain('Claude 官方')
const denied = createCommandContext({ userId: 999 })
+1 -1
View File
@@ -16,7 +16,7 @@ import {
export const TELEGRAM_SELECTION_TTL_MS = 15 * 60 * 1000
export const OFFICIAL_PROVIDER_VALUE = 'official'
export const OPENAI_OFFICIAL_PROVIDER_ID = 'openai-official'
export const OFFICIAL_DEFAULT_MODEL_ID = 'claude-opus-4-7'
export const OFFICIAL_DEFAULT_MODEL_ID = 'claude-opus-4-8'
export const OPENAI_OFFICIAL_DEFAULT_MODEL_ID = 'gpt-5.3-codex'
type TelegramSendApi = {