Skip to content

Commit

Permalink
removed debug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbedouret committed Sep 6, 2024
1 parent c0c01d8 commit cdd030d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/app/api/azure-services/detect-language/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
1 change: 0 additions & 1 deletion src/app/api/azure-services/translate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cdd030d

Please sign in to comment.