diff --git a/app/api/deepseek.ts b/app/api/deepseek.ts index 9433e404b..06d97a0d6 100644 --- a/app/api/deepseek.ts +++ b/app/api/deepseek.ts @@ -8,7 +8,7 @@ import { import { prettyObject } from "@/app/utils/format"; import { NextRequest, NextResponse } from "next/server"; import { auth } from "@/app/api/auth"; -import { isModelAvailableInServer } from "@/app/utils/model"; +import { isModelNotavailableInServer } from "@/app/utils/model"; const serverConfig = getServerSideConfig(); @@ -88,7 +88,7 @@ async function request(req: NextRequest) { // not undefined and is false if ( - isModelAvailableInServer( + isModelNotavailableInServer( serverConfig.customModels, jsonBody?.model as string, ServiceProvider.Moonshot as string, diff --git a/app/constant.ts b/app/constant.ts index b1fca2d47..8163f51b4 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -287,6 +287,8 @@ export const KnowledgeCutOffDate: Record = { // it's now easier to add "KnowledgeCutOffDate" instead of stupid hardcoding it, as was done previously. "gemini-pro": "2023-12", "gemini-pro-vision": "2023-12", + "deepseek-chat": "2024-07", + "deepseek-coder": "2024-07", }; export const DEFAULT_TTS_ENGINE = "OpenAI-TTS";