Skip to content

Commit

Permalink
chore: open ai model
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Dec 21, 2024
1 parent 58acb5a commit e51adca
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions apps/core/src/modules/ai/ai.constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { OpenAI } from 'openai'

export const DEFAULT_SUMMARY_LANG = 'zh'

export const LANGUAGE_CODE_TO_NAME = {
Expand Down Expand Up @@ -46,6 +48,16 @@ export const LANGUAGE_CODE_TO_NAME = {
}

export const OpenAiSupportedModels = [
{ label: 'o1-preview', value: 'o1-preview' },
{ label: 'o1-preview-2024-09-12', value: 'o1-preview-2024-09-12' },
{ label: 'o1-mini', value: 'o1-mini' },
{ label: 'o1-mini-2024-09-12', value: 'o1-mini-2024-09-12' },
{ label: 'gpt-4o', value: 'gpt-4o' },
{ label: 'gpt-4o-2024-08-06', value: 'gpt-4o-2024-08-06' },
{ label: 'gpt-4o-2024-05-13', value: 'gpt-4o-2024-05-13' },
{ label: 'chatgpt-4o-latest', value: 'chatgpt-4o-latest' },
{ label: 'gpt-4o-mini', value: 'gpt-4o-mini' },
{ label: 'gpt-4o-mini-2024-07-18', value: 'gpt-4o-mini-2024-07-18' },
{ label: 'gpt-4-turbo', value: 'gpt-4-turbo' },
{ label: 'gpt-4-turbo-2024-04-09', value: 'gpt-4-turbo-2024-04-09' },
{ label: 'gpt-4-0125-preview', value: 'gpt-4-0125-preview' },
Expand All @@ -65,7 +77,4 @@ export const OpenAiSupportedModels = [
{ label: 'gpt-3.5-turbo-1106', value: 'gpt-3.5-turbo-1106' },
{ label: 'gpt-3.5-turbo-0125', value: 'gpt-3.5-turbo-0125' },
{ label: 'gpt-3.5-turbo-16k-0613', value: 'gpt-3.5-turbo-16k-0613' },
{ label: 'gpt-4o', value: 'gpt-4o' },
{ label: 'gpt-4o-2024-05-13', value: 'gpt-4o-2024-05-13' },
{ label: 'gpt-4o-mini', value: 'gpt-4o-mini' },
]

0 comments on commit e51adca

Please sign in to comment.