Skip to content

Commit 570ccef

Browse files
author
Kerwin
committed
chore: 新增模型 (Close #243)
1 parent 89552f8 commit 570ccef

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

service/src/storage/model.ts

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,15 @@ export class UserConfig {
5353
}
5454

5555
// https://platform.openai.com/docs/models/overview
56-
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' | 'gpt-4-browsing'
56+
// 除此之外,gpt-4-0314、gpt-4-32k-0314、gpt-3.5-turbo-0301 模型将在 9 月 13 日被弃用。
57+
export type CHATMODEL = 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-0613' | 'gpt-4-32k-0613' | 'ext-davinci-002-render-sha-mobile' | 'text-embedding-ada-002' | 'gpt-4-mobile' | 'gpt-4-browsing'
5758

5859
export const CHATMODELS: CHATMODEL[] = [
59-
'gpt-3.5-turbo',
60-
'gpt-3.5-turbo-0301',
61-
'gpt-4',
62-
'gpt-4-0314',
63-
'gpt-4-32k',
64-
'gpt-4-32k-0314',
65-
'ext-davinci-002-render-sha-mobile',
66-
'gpt-4-mobile',
67-
'gpt-4-browsing',
60+
'gpt-3.5-turbo', 'gpt-3.5-turbo-0301', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k', 'gpt-4', 'gpt-4-0314', 'gpt-4-32k', 'gpt-4-32k-0314', 'gpt-4-0613', 'gpt-4-32k-0613', 'ext-davinci-002-render-sha-mobile', 'text-embedding-ada-002', 'gpt-4-mobile', 'gpt-4-browsing',
6861
]
6962

7063
export const chatModelOptions = [
71-
'gpt-3.5-turbo',
72-
'gpt-3.5-turbo-0301',
73-
'gpt-4',
74-
'gpt-4-0314',
75-
'gpt-4-32k',
76-
'gpt-4-32k-0314',
77-
'text-davinci-002-render-sha-mobile',
78-
'gpt-4-mobile',
79-
'gpt-4-browsing',
64+
'gpt-3.5-turbo', 'gpt-3.5-turbo-0301', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k', 'gpt-4', 'gpt-4-0314', 'gpt-4-32k', 'gpt-4-32k-0314', 'gpt-4-0613', 'gpt-4-32k-0613', 'ext-davinci-002-render-sha-mobile', 'text-embedding-ada-002', 'gpt-4-mobile', 'gpt-4-browsing',
8065
].map((model: string) => {
8166
let label = model
8267
if (model === 'text-davinci-002-render-sha-mobile')

src/components/common/Setting/model.ts

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

1818
// https://platform.openai.com/docs/models/overview
19-
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' | 'gpt-4-browsing'
19+
export type CHATMODEL = 'gpt-3.5-turbo' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k' | 'gpt-4' | 'gpt-4-0314' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-0613' | 'gpt-4-32k-0613' | 'ext-davinci-002-render-sha-mobile' | 'text-embedding-ada-002' | 'gpt-4-mobile' | 'gpt-4-browsing'
2020

2121
export class UserConfig {
2222
chatModel?: CHATMODEL

0 commit comments

Comments
 (0)