update provider info

This commit is contained in:
首都爱护动物协会 2025-02-17 14:01:02 +08:00 committed by 亢奋猫
parent 2076e6f998
commit 0c0ccf3d11
3 changed files with 49 additions and 13 deletions

View File

@ -1326,34 +1326,70 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
], ],
dmxapi: [ dmxapi: [
{ {
id: 'gpt-3.5-turbo', id: 'Qwen/Qwen2.5-7B-Instruct',
provider: 'dmxapi', provider: 'dmxapi',
name: 'GPT-3.5-Turbo', name: 'Qwen/Qwen2.5-7B-Instruct',
group: 'OpenAI' group: '免费模型'
},
{
id: 'ERNIE-Speed-128K',
provider: 'dmxapi',
name: 'ERNIE-Speed-128K',
group: '免费模型'
},
{
id: 'THUDM/glm-4-9b-chat',
provider: 'dmxapi',
name: 'THUDM/glm-4-9b-chat',
group: '免费模型'
},
{
id: 'glm-4-flash',
provider: 'dmxapi',
name: 'glm-4-flash',
group: '免费模型'
},
{
id: 'hunyuan-lite',
provider: 'dmxapi',
name: 'hunyuan-lite',
group: '免费模型'
}, },
{ {
id: 'gpt-4o', id: 'gpt-4o',
provider: 'dmxapi', provider: 'dmxapi',
name: 'GPT-4o', name: 'gpt-4o',
group: 'OpenAI' group: 'OpenAI'
}, },
{ {
id: 'gpt-4o-mini', id: 'gpt-4o-mini',
provider: 'dmxapi', provider: 'dmxapi',
name: 'GPT-4o-Mini', name: 'gpt-4o-mini',
group: 'OpenAI' group: 'OpenAI'
}, },
{ {
id: 'deepseek-reasoner', id: 'DMXAPI-DeepSeek-R1',
provider: 'dmxapi', provider: 'dmxapi',
name: 'DeepSeek Reasoner', name: 'DMXAPI-DeepSeek-R1',
group: 'DeepSeek' group: 'DeepSeek'
}, },
{ {
id: 'deepseek-chat', id: 'DMXAPI-DeepSeek-V3',
provider: 'dmxapi', provider: 'dmxapi',
name: 'DeepSeek Chat', name: 'DMXAPI-DeepSeek-V3',
group: 'DeepSeek' group: 'DeepSeek'
},
{
id: 'claude-3-5-sonnet-20241022',
provider: 'dmxapi',
name: 'claude-3-5-sonnet-20241022',
group: 'Claude'
},
{
id: 'gemini-2.0-flash',
provider: 'dmxapi',
name: 'gemini-2.0-flash',
group: 'Gemini'
} }
], ],
perplexity: [ perplexity: [

View File

@ -212,11 +212,11 @@ export const PROVIDER_CONFIG = {
}, },
dmxapi: { dmxapi: {
api: { api: {
url: 'https://api.dmxapi.com' url: 'https://www.dmxapi.com'
}, },
websites: { websites: {
official: 'https://dmxapi.com/', official: 'https://www.dmxapi.com/register?aff=81aj/',
apiKey: 'https://www.dmxapi.com/token', apiKey: 'https://www.dmxapi.com/register?aff=81aj',
docs: 'https://dmxapi.com/models.html#code-block', docs: 'https://dmxapi.com/models.html#code-block',
models: 'https://www.dmxapi.com/pricing' models: 'https://www.dmxapi.com/pricing'
} }

View File

@ -152,7 +152,7 @@ const initialState: LlmState = {
name: 'DMXAPI', name: 'DMXAPI',
type: 'openai', type: 'openai',
apiKey: '', apiKey: '',
apiHost: 'https://api.dmxapi.com', apiHost: 'https://www.dmxapi.com',
models: SYSTEM_MODELS.dmxapi, models: SYSTEM_MODELS.dmxapi,
isSystem: true, isSystem: true,
enabled: false enabled: false