Skip to content

Commit bf5e1ae

Browse files
committed
Use latest gpt-3.5-turbo model
1 parent a8135ce commit bf5e1ae

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/app/bots/chatgpt-api/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ export class ChatGPTApiBot extends AbstractChatGPTApiBot {
135135
if (chatgptApiModel === 'gpt-4-turbo') {
136136
return 'gpt-4-1106-preview'
137137
}
138+
if (chatgptApiModel === 'gpt-3.5-turbo') {
139+
return 'gpt-3.5-turbo-1106'
140+
}
138141
return chatgptApiModel
139142
}
140143

src/app/consts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import wizardlmLogo from '~/assets/wizardlm-logo.png'
1414
import xunfeiLogo from '~/assets/xunfei-logo.png'
1515
import { BotId } from './bots'
1616

17-
export const CHATBOTS: Record<BotId, { name: string; avatar: any }> = {
17+
export const CHATBOTS: Record<BotId, { name: string; avatar: string }> = {
1818
chatgpt: {
1919
name: 'ChatGPT',
2020
avatar: chatgptLogo,
@@ -74,7 +74,7 @@ export const CHATBOTS: Record<BotId, { name: string; avatar: any }> = {
7474
}
7575

7676
export const CHATGPT_HOME_URL = 'https://chat.openai.com'
77-
export const CHATGPT_API_MODELS = ['gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-4', 'gpt-4-32k', 'gpt-4-turbo'] as const
77+
export const CHATGPT_API_MODELS = ['gpt-3.5-turbo', 'gpt-4', 'gpt-4-32k', 'gpt-4-turbo'] as const
7878
export const ALL_IN_ONE_PAGE_ID = 'all'
7979

8080
export const DEFAULT_CHATGPT_SYSTEM_MESSAGE =

src/services/user-config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ export async function getUserConfig(): Promise<UserConfig> {
9292
} else if (result.chatgptWebappModelName === 'gpt-4-mobile') {
9393
result.chatgptWebappModelName = ChatGPTWebModel['GPT-4']
9494
}
95+
if (result.chatgptApiModel === 'gpt-3.5-turbo-16k') {
96+
result.chatgptApiModel = 'gpt-3.5-turbo'
97+
}
9598
if (
9699
result.claudeApiModel !== ClaudeAPIModel['claude-2'] ||
97100
result.claudeApiModel !== ClaudeAPIModel['claude-instant-1']

0 commit comments

Comments
 (0)