mirror of
https://github.com/NanmiCoder/claude-code-haha.git
synced 2026-10-10 03:43:11 +08:00
fix(models): expose current Claude official lineup
This commit is contained in:
@@ -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 })
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user