fix(deepseek): deepseek should not check Moonshot ServiceProvider

fix `you are not allowed to use DeepSeek model` error without Moonshot settings
This commit is contained in:
CharlinChen 2024-12-30 16:33:34 +08:00 committed by GitHub
parent d56566cd73
commit d0aac5935b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,7 +91,7 @@ async function request(req: NextRequest) {
isModelNotavailableInServer( isModelNotavailableInServer(
serverConfig.customModels, serverConfig.customModels,
jsonBody?.model as string, jsonBody?.model as string,
ServiceProvider.Moonshot as string, ServiceProvider.DeepSeek as string,
) )
) { ) {
return NextResponse.json( return NextResponse.json(