Skip to content

Commit

Permalink
removed comment in index js
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronicaPim authored Nov 16, 2024
1 parent 923d0e0 commit b72b4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/translate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const fetch = require('node-fetch');
const translatorApi = module.exports;

translatorApi.translate = async function (postData) {
const TRANSLATOR_API = 'https://bluesleep-ai.openai.azure.com/'; // Correct endpoint
const TRANSLATOR_API = 'https://bluesleep-ai.openai.azure.com/';
const response = await fetch(`${TRANSLATOR_API}/?content=${postData.content}`);
const data = await response.json();
return [data.is_english, data.translated_content];
Expand Down

0 comments on commit b72b4e5

Please sign in to comment.