diff --git a/app/api/deepseek.ts b/app/api/deepseek.ts
index 06d97a0d606..a9879ecedeb 100644
--- a/app/api/deepseek.ts
+++ b/app/api/deepseek.ts
@@ -91,7 +91,7 @@ async function request(req: NextRequest) {
isModelNotavailableInServer(
serverConfig.customModels,
jsonBody?.model as string,
- ServiceProvider.Moonshot as string,
+ ServiceProvider.DeepSeek as string,
)
) {
return NextResponse.json(
diff --git a/app/components/settings.tsx b/app/components/settings.tsx
index a74ff17b1f5..3b990ed2c74 100644
--- a/app/components/settings.tsx
+++ b/app/components/settings.tsx
@@ -73,6 +73,7 @@ import {
Iflytek,
SAAS_CHAT_URL,
ChatGLM,
+ DeepSeek,
} from "../constant";
import { Prompt, SearchService, usePromptStore } from "../store/prompt";
import { ErrorBoundary } from "./error";
@@ -1197,6 +1198,47 @@ export function Settings() {
>
);
+ const deepseekConfigComponent = accessStore.provider ===
+ ServiceProvider.DeepSeek && (
+ <>
+
+
+ accessStore.update(
+ (access) => (access.deepseekUrl = e.currentTarget.value),
+ )
+ }
+ >
+
+
+ {
+ accessStore.update(
+ (access) => (access.deepseekApiKey = e.currentTarget.value),
+ );
+ }}
+ />
+
+ >
+ );
+
const XAIConfigComponent = accessStore.provider === ServiceProvider.XAI && (
<>