From 7159481217b8feafd7dce36d4c674569e0ac7d32 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: Wed, 19 Feb 2025 04:37:23 +0800 Subject: [PATCH] Updated provider information --- src/renderer/src/config/models.ts | 7 +++++-- src/renderer/src/config/providers.ts | 10 +++++----- src/renderer/src/store/llm.ts | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/renderer/src/config/models.ts b/src/renderer/src/config/models.ts index bb863d6b..cd76e5b2 100644 --- a/src/renderer/src/config/models.ts +++ b/src/renderer/src/config/models.ts @@ -179,9 +179,9 @@ export function getModelLogo(modelId: string) { pixtral: isLight ? PixtralModelLogo : PixtralModelLogoDark, jina: isLight ? JinaModelLogo : JinaModelLogoDark, abab: isLight ? MinimaxModelLogo : MinimaxModelLogoDark, + minimax: isLight ? MinimaxModelLogo : MinimaxModelLogoDark, o3: isLight ? ChatGPTo1ModelLogo : ChatGPTo1ModelLogoDark, o1: isLight ? ChatGPTo1ModelLogo : ChatGPTo1ModelLogoDark, - 'kimi-latest': isLight ? MoonshotModelLogo : MoonshotModelLogoDark, 'gpt-3': isLight ? ChatGPT35ModelLogo : ChatGPT35ModelLogoDark, 'gpt-4': isLight ? ChatGPT4ModelLogo : ChatGPT4ModelLogoDark, gpts: isLight ? ChatGPT4ModelLogo : ChatGPT4ModelLogoDark, @@ -196,13 +196,16 @@ export function getModelLogo(modelId: string) { glm: isLight ? ChatGLMModelLogo : ChatGLMModelLogoDark, deepseek: isLight ? DeepSeekModelLogo : DeepSeekModelLogoDark, qwen: isLight ? QwenModelLogo : QwenModelLogoDark, - qwq: isLight ? QwenModelLogo : QwenModelLogoDark, + "qwq-": isLight ? QwenModelLogo : QwenModelLogoDark, + "qvq-": isLight ? QwenModelLogo : QwenModelLogoDark, + Omni: isLight ? QwenModelLogo : QwenModelLogoDark, gemma: isLight ? GemmaModelLogo : GemmaModelLogoDark, 'yi-': isLight ? YiModelLogo : YiModelLogoDark, llama: isLight ? LlamaModelLogo : LlamaModelLogoDark, mixtral: isLight ? MistralModelLogo : MistralModelLogo, mistral: isLight ? MistralModelLogo : MistralModelLogoDark, moonshot: isLight ? MoonshotModelLogo : MoonshotModelLogoDark, + kimi: isLight ? MoonshotModelLogo : MoonshotModelLogoDark, phi: isLight ? MicrosoftModelLogo : MicrosoftModelLogoDark, baichuan: isLight ? BaichuanModelLogo : BaichuanModelLogoDark, claude: isLight ? ClaudeModelLogo : ClaudeModelLogoDark, diff --git a/src/renderer/src/config/providers.ts b/src/renderer/src/config/providers.ts index 9d2837de..a68d81ae 100644 --- a/src/renderer/src/config/providers.ts +++ b/src/renderer/src/config/providers.ts @@ -212,13 +212,13 @@ export const PROVIDER_CONFIG = { }, dmxapi: { api: { - url: 'https://www.dmxapi.com' + url: 'https://www.dmxapi.cn' }, websites: { - 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' + official: 'https://www.dmxapi.cn/register?aff=bwwY', + apiKey: 'https://www.dmxapi.cn/register?aff=bwwY', + docs: 'https://dmxapi.cn/models.html#code-block', + models: 'https://www.dmxapi.cn/pricing' } }, perplexity: { diff --git a/src/renderer/src/store/llm.ts b/src/renderer/src/store/llm.ts index 2396c6ef..3f2fc10d 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://www.dmxapi.com', + apiHost: 'https://www.dmxapi.cn', models: SYSTEM_MODELS.dmxapi, isSystem: true, enabled: false