Skip to content

Commit

Permalink
feat: 支持 ios app 的两种模型(Close #147)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin committed May 21, 2023
1 parent 1a39272 commit dae4df5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/components/common/Setting/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ const chatModelOptions = [
'gpt-4-0314',
'gpt-4-32k',
'gpt-4-32k-0314',
'text-davinci-002-render-sha-mobile',
'gpt-4-mobile',
].map((model: string) => {
let label = model
if (model === 'text-davinci-002-render-sha-mobile')
label = 'gpt-3.5-mobile'
return {
label: model,
label,
key: model,
value: model,
}
Expand Down Expand Up @@ -133,7 +138,7 @@ onMounted(() => {
<span class="flex-shrink-0 w-[100px]">{{ $t('setting.chatModel') }}</span>
<div class="flex-1">
<NSelect
style="width: 240px"
style="width: 444px"
:value="config.chatModel"
:options="chatModelOptions"
@update-value="(val) => { config.chatModel = val }"
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Setting/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class ConfigState {
}

// https://platform.openai.com/docs/models/overview
export type CHATMODEL = 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-32k' | 'gpt-4-32k-0314'
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'

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

Expand Down

0 comments on commit dae4df5

Please sign in to comment.