From 3fb9e38a31daf0403d78b292f1c27e4b326a3863 Mon Sep 17 00:00:00 2001 From: Dejan Zdravkovic Date: Thu, 19 Dec 2024 02:04:28 +0100 Subject: [PATCH] fix azure rapid api url --- src/translate/providers/azure-rapid-api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/translate/providers/azure-rapid-api.ts b/src/translate/providers/azure-rapid-api.ts index e626f64..f366bc6 100644 --- a/src/translate/providers/azure-rapid-api.ts +++ b/src/translate/providers/azure-rapid-api.ts @@ -7,7 +7,7 @@ import { Translate } from '../translate'; import { addCustomCert } from '../util'; export class AzureRapidAPI extends Translate { - private static readonly endpoint: string = 'microsoft-translator-text.p.rapidapi.com'; + private static readonly endpoint: string = 'microsoft-translator-text-api3.p.rapidapi.com'; private static readonly axiosConfig: AxiosRequestConfig = { headers: { 'X-ClientTraceId': crypto.randomUUID(), @@ -16,7 +16,6 @@ export class AzureRapidAPI extends Translate { 'Content-type': 'application/json', }, params: { - 'api-version': '3.0', from: argv.from, to: argv.to, },