Skip to content

Commit dae4df5

Browse files
author
Kerwin
committed
feat: 支持 ios app 的两种模型(Close #147)
1 parent 1a39272 commit dae4df5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/common/Setting/About.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ const chatModelOptions = [
2727
'gpt-4-0314',
2828
'gpt-4-32k',
2929
'gpt-4-32k-0314',
30+
'text-davinci-002-render-sha-mobile',
31+
'gpt-4-mobile',
3032
].map((model: string) => {
33+
let label = model
34+
if (model === 'text-davinci-002-render-sha-mobile')
35+
label = 'gpt-3.5-mobile'
3136
return {
32-
label: model,
37+
label,
3338
key: model,
3439
value: model,
3540
}
@@ -133,7 +138,7 @@ onMounted(() => {
133138
<span class="flex-shrink-0 w-[100px]">{{ $t('setting.chatModel') }}</span>
134139
<div class="flex-1">
135140
<NSelect
136-
style="width: 240px"
141+
style="width: 444px"
137142
:value="config.chatModel"
138143
:options="chatModelOptions"
139144
@update-value="(val) => { config.chatModel = val }"

src/components/common/Setting/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class ConfigState {
1717
}
1818

1919
// https://platform.openai.com/docs/models/overview
20-
export type CHATMODEL = 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-32k' | 'gpt-4-32k-0314'
20+
export type CHATMODEL = 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'ext-davinci-002-render-sha-mobile' | 'gpt-4-mobile'
2121

2222
export type ApiModel = 'ChatGPTAPI' | 'ChatGPTUnofficialProxyAPI' | undefined
2323

0 commit comments

Comments
 (0)