Skip to content

Commit fc9ed60

Browse files
feat: OpenAI model
1 parent aad8fea commit fc9ed60

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

frontend/src/entity/supplier.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import icon_deepseek_colorful from '@/assets/model/icon_deepseek_colorful.png'
44
import icon_txy_colorful from '@/assets/model/icon_txy_colorful.png'
55
import icon_xfhx_colorful from '@/assets/model/icon_xfhx_colorful.png'
66
import icon_gemini_colorful from '@/assets/model/icon_gemini_colorful.png'
7+
import icon_openai_colorful from '@/assets/model/icon_openai_colorful.png'
78

89
type ModelArg = { key: string; val?: string | number; type: string; range?: string }
910
type ModelOption = { name: string; api_domain?: string; args?: ModelArg[] }
@@ -155,6 +156,34 @@ export const supplierList: Array<{
155156
},
156157
},
157158
},
159+
{
160+
id: 7,
161+
name: 'OpenAI',
162+
icon: icon_openai_colorful,
163+
model_config: {
164+
0: {
165+
api_domain: 'https://api.openai.com/v1',
166+
common_args: [{ key: 'temperature', val: 1.0, type: 'number', range: '[0, 2]' }],
167+
model_options: [
168+
{ name: 'gpt-4.1' },
169+
{ name: 'gpt-4.1-mini' },
170+
{ name: 'gpt-4.1-nano' },
171+
{ name: 'gpt-4o' },
172+
{ name: 'gpt-4o-mini' },
173+
{ name: 'chatgpt-4o' },
174+
{ name: 'o4-mini' },
175+
{ name: 'o4-mini-deep-research' },
176+
{ name: 'o3' },
177+
{ name: 'o3-pro' },
178+
{ name: 'o3-mini' },
179+
{ name: 'o3-deep-research' },
180+
{ name: 'o1' },
181+
{ name: 'o1-pro' },
182+
{ name: 'o1-mini' },
183+
],
184+
},
185+
},
186+
},
158187
]
159188

160189
export const base_model_options = (supplier_id: number, model_type?: number) => {

0 commit comments

Comments
 (0)