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

[Possible bugfix] optional Translation #90

Open
archibold opened this issue Jul 10, 2024 · 0 comments
Open

[Possible bugfix] optional Translation #90

archibold opened this issue Jul 10, 2024 · 0 comments

Comments

@archibold
Copy link

I am not able to push pull request, but I found something that help you to resolve a bug in file:
translate-transcript from line 66

function chat needs 10 arguments, last 3 are optional, but somehow you miss temperature that's why log_action is missed

            try {
                return await this.chat(
                    llm,
                    service,
                    model,
                    userPrompt,
                    systemMessage,
                   (temperature = 0.2),  // !!!! <-------- You missed this arg, I'm not sure whre temperature comes from, So I leave default value as 0.2
                    0,
                    (attempt) =>
                        `Attempt ${attempt}: Detecting transcript language using ChatGPT`,
                    `Language detected successfully.`,
                    (attempt, error) =>
                        `Attempt ${attempt} for language detection failed with error: ${error.message}. Retrying...`
                );
            } catch (error) {
                throw new Error(
                    `Language detection failed with error: ${error.message}`
                );
            }
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

No branches or pull requests

1 participant