From 0c0ccf3d11c58e9a098a2236121a726976526240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A6=96=E9=83=BD=E7=88=B1=E6=8A=A4=E5=8A=A8=E7=89=A9?= =?UTF-8?q?=E5=8D=8F=E4=BC=9A?= <87239270+1355873789@users.noreply.github.com> Date: Mon, 17 Feb 2025 14:01:02 +0800 Subject: [PATCH] update provider info --- src/renderer/src/config/models.ts | 54 +++++++++++++++++++++++----- src/renderer/src/config/providers.ts | 6 ++-- src/renderer/src/store/llm.ts | 2 +- 3 files changed, 49 insertions(+), 13 deletions(-) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index fc338076..b49b2845 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -1326,34 +1326,70 @@ export const SYSTEM_MODELS: Record = { ], dmxapi: [ { - id: 'gpt-3.5-turbo', + id: 'Qwen/Qwen2.5-7B-Instruct', provider: 'dmxapi', - name: 'GPT-3.5-Turbo', - group: 'OpenAI' + name: 'Qwen/Qwen2.5-7B-Instruct', + 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', provider: 'dmxapi', - name: 'GPT-4o', + name: 'gpt-4o', group: 'OpenAI' }, { id: 'gpt-4o-mini', provider: 'dmxapi', - name: 'GPT-4o-Mini', + name: 'gpt-4o-mini', group: 'OpenAI' }, { - id: 'deepseek-reasoner', + id: 'DMXAPI-DeepSeek-R1', provider: 'dmxapi', - name: 'DeepSeek Reasoner', + name: 'DMXAPI-DeepSeek-R1', group: 'DeepSeek' }, { - id: 'deepseek-chat', + id: 'DMXAPI-DeepSeek-V3', provider: 'dmxapi', - name: 'DeepSeek Chat', + name: 'DMXAPI-DeepSeek-V3', 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: [ diff --git a/src/renderer/src/config/providers.ts b/src/renderer/src/config/providers.ts index 08de2c94..9d2837de 100644 --- a/src/renderer/src/config/providers.ts +++ b/src/renderer/src/config/providers.ts @@ -212,11 +212,11 @@ export const PROVIDER_CONFIG = { }, dmxapi: { api: { - url: 'https://api.dmxapi.com' + url: 'https://www.dmxapi.com' }, websites: { - official: 'https://dmxapi.com/', - apiKey: 'https://www.dmxapi.com/token', + official: 'https://www.dmxapi.com/register?aff=81aj/', + apiKey: 'https://www.dmxapi.com/register?aff=81aj', docs: 'https://dmxapi.com/models.html#code-block', models: 'https://www.dmxapi.com/pricing' } diff --git a/src/renderer/src/store/llm.ts b/src/renderer/src/store/llm.ts index 39056388..2396c6ef 100644 --- a/src/renderer/src/store/llm.ts +++ b/src/renderer/src/store/llm.ts @@ -152,7 +152,7 @@ const initialState: LlmState = { name: 'DMXAPI', type: 'openai', apiKey: '', - apiHost: 'https://api.dmxapi.com', + apiHost: 'https://www.dmxapi.com', models: SYSTEM_MODELS.dmxapi, isSystem: true, enabled: false