Skip to content

Commit

Permalink
fix azure rapid api url
Browse files Browse the repository at this point in the history
  • Loading branch information
while1618 committed Dec 19, 2024
1 parent 4078ca3 commit 3fb9e38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/translate/providers/azure-rapid-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -16,7 +16,6 @@ export class AzureRapidAPI extends Translate {
'Content-type': 'application/json',
},
params: {
'api-version': '3.0',
from: argv.from,
to: argv.to,
},
Expand Down

0 comments on commit 3fb9e38

Please sign in to comment.