Skip to content

Commit 597cc7c

Browse files
committed
feat: add gpt3.5-mobile, gpt4-mobile, gpt4-browsing support
1 parent 18cc809 commit 597cc7c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/config/index.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ export const ModelMode = {
2121
fast: 'Fast',
2222
}
2323

24-
export const chatgptWebModelKeys = ['chatgptFree35', 'chatgptPlus4']
24+
export const chatgptWebModelKeys = [
25+
'chatgptFree35',
26+
'chatgptPlus4',
27+
'chatgptFree35Mobile',
28+
'chatgptPlus4Browsing',
29+
'chatgptPlus4Mobile',
30+
]
2531
export const bingWebModelKeys = ['bingFree4', 'bingFreeSydney']
2632
export const gptApiModelKeys = ['gptApiDavinci']
2733
export const chatgptApiModelKeys = ['chatgptApi35', 'chatgptApi4_8k', 'chatgptApi4_32k']
@@ -48,7 +54,10 @@ export const poeWebModelKeys = [
4854
*/
4955
export const Models = {
5056
chatgptFree35: { value: 'text-davinci-002-render-sha', desc: 'ChatGPT (Web)' },
57+
chatgptFree35Mobile: { value: 'text-davinci-002-render-sha-mobile', desc: 'ChatGPT (Mobile)' },
5158
chatgptPlus4: { value: 'gpt-4', desc: 'ChatGPT (Web, GPT-4)' },
59+
chatgptPlus4Browsing: { value: 'gpt-4-browsing', desc: 'ChatGPT (Web, GPT-4, Browsing)' },
60+
chatgptPlus4Mobile: { value: 'gpt-4-mobile', desc: 'ChatGPT (Mobile, GPT-4)' },
5261
chatgptApi35: { value: 'gpt-3.5-turbo', desc: 'ChatGPT (GPT-3.5-turbo)' },
5362
bingFree4: { value: '', desc: 'Bing (Web, GPT-4)' },
5463
bingFreeSydney: { value: '', desc: 'Bing (Web, GPT-4, Sydney)' },
@@ -133,7 +142,9 @@ export const defaultConfig = {
133142
alwaysCreateNewConversationWindow: false,
134143
activeApiModes: [
135144
'chatgptFree35',
145+
'chatgptFree35Mobile',
136146
'chatgptPlus4',
147+
'chatgptPlus4Mobile',
137148
'chatgptApi35',
138149
'bingFree4',
139150
'bingFreeSydney',

src/services/apis/chatgpt-web.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export async function generateAnswersWithChatgptWebApi(port, question, session,
6969
})
7070
console.debug('models', models)
7171
const config = await getUserConfig()
72-
const selectedModel = Models[config.modelName].value
72+
const selectedModel = Models[session.modelName].value
7373
const usedModel =
7474
models && models.includes(selectedModel) ? selectedModel : Models[chatgptWebModelKeys[0]].value
7575
console.debug('usedModel', usedModel)

0 commit comments

Comments
 (0)