3ru/gpt-translate

View on GitHub
src/gpt.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function askGPT has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const askGPT = async (text: string, prompt: string): Promise<string> => {
  const {
    data: {
      choices: [{ message: { content: content } = { content: '' } }],
    },
Severity: Minor
Found in src/gpt.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status