From cdd030dbee7c918c46ad5b8e465194021d02a9c1 Mon Sep 17 00:00:00 2001 From: Martin Bedouret Date: Fri, 6 Sep 2024 03:22:35 -0300 Subject: [PATCH] removed debug --- src/app/api/azure-services/detect-language/route.ts | 3 +-- src/app/api/azure-services/translate/route.ts | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/api/azure-services/detect-language/route.ts b/src/app/api/azure-services/detect-language/route.ts index d43ee194..2e03aad0 100644 --- a/src/app/api/azure-services/detect-language/route.ts +++ b/src/app/api/azure-services/detect-language/route.ts @@ -5,8 +5,7 @@ import { AzureKeyCredential, } from '@azure/ai-text-analytics'; -const detectorKey: string = - process.env.LANGUAGE_KEY || 'cb79abbf579d441194d0b049b6ab5fda'; +const detectorKey: string = process.env.LANGUAGE_KEY || ''; const detectorEndpoint: string = 'https://cbuilder-language.cognitiveservices.azure.com'; diff --git a/src/app/api/azure-services/translate/route.ts b/src/app/api/azure-services/translate/route.ts index 95fcd47c..6daf437c 100644 --- a/src/app/api/azure-services/translate/route.ts +++ b/src/app/api/azure-services/translate/route.ts @@ -36,7 +36,6 @@ export async function POST(req: Request) { console.error(translateResponse.body.error); } else { const translations = translateResponse.body; - console.log(translations); if (translations instanceof Array) { return NextResponse.json({ translation: translations[0].translations[0].text,