Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat 4466 deepgram language detection using node #138

Closed
wants to merge 3 commits into from

Conversation

Player256
Copy link

@Player256 Player256 commented Mar 5, 2023

@Player256
Copy link
Author

Player256 commented Mar 6, 2023

@stnguyen90 can you give it a look?

@stnguyen90 stnguyen90 self-requested a review April 25, 2023 19:16
Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR! 🤯 We left some comments during the review, please check them out.


module.exports = async (req, res) => {
const { fileUrl } = JSON.parse(req.payload);
const {apiKey} = JSON.parse(req.variables["DEEPGRAM_API_KEY"]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to parse the variable like this 🧐

res.json({
success: false,
message: "API key is required.",
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to return after this so execution doesn't continue

res.json({
success: false,
message: "File Url is required.",
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to return after this so execution doesn't continue

@stnguyen90
Copy link
Contributor

@Player256, will you be able to address the comments I left?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⚡ Write a deepgramLanguageDetection() Function using Node
2 participants