mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: OpenAI model
This commit is contained in:
@@ -4,6 +4,7 @@ import icon_deepseek_colorful from '@/assets/model/icon_deepseek_colorful.png'
|
||||
import icon_txy_colorful from '@/assets/model/icon_txy_colorful.png'
|
||||
import icon_xfhx_colorful from '@/assets/model/icon_xfhx_colorful.png'
|
||||
import icon_gemini_colorful from '@/assets/model/icon_gemini_colorful.png'
|
||||
import icon_openai_colorful from '@/assets/model/icon_openai_colorful.png'
|
||||
|
||||
type ModelArg = { key: string; val?: string | number; type: string; range?: string }
|
||||
type ModelOption = { name: string; api_domain?: string; args?: ModelArg[] }
|
||||
@@ -155,6 +156,34 @@ export const supplierList: Array<{
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
name: 'OpenAI',
|
||||
icon: icon_openai_colorful,
|
||||
model_config: {
|
||||
0: {
|
||||
api_domain: 'https://api.openai.com/v1',
|
||||
common_args: [{ key: 'temperature', val: 1.0, type: 'number', range: '[0, 2]' }],
|
||||
model_options: [
|
||||
{ name: 'gpt-4.1' },
|
||||
{ name: 'gpt-4.1-mini' },
|
||||
{ name: 'gpt-4.1-nano' },
|
||||
{ name: 'gpt-4o' },
|
||||
{ name: 'gpt-4o-mini' },
|
||||
{ name: 'chatgpt-4o' },
|
||||
{ name: 'o4-mini' },
|
||||
{ name: 'o4-mini-deep-research' },
|
||||
{ name: 'o3' },
|
||||
{ name: 'o3-pro' },
|
||||
{ name: 'o3-mini' },
|
||||
{ name: 'o3-deep-research' },
|
||||
{ name: 'o1' },
|
||||
{ name: 'o1-pro' },
|
||||
{ name: 'o1-mini' },
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export const base_model_options = (supplier_id: number, model_type?: number) => {
|
||||
|
||||
Reference in New Issue
Block a user