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

Add more fallback translator options #45

Closed
wants to merge 1 commit into from

Conversation

Cerlancism
Copy link
Owner

@Cerlancism Cerlancism commented Oct 26, 2024

Fixes #42

Implement a fallback translation engine for flagged or failed translations.

  • src/translator.mjs

    • Add logic to handle fallback translation for flagged translations in the translateLines method.
    • Add logic to handle fallback translation for failed translations in the translatePrompt method.
    • Update the yieldOutput method to include fallback translation results.
  • cli/translator.mjs

    • Add CLI flags for fallback model.
    • Add CLI option for unstructured mode fallback when using structured mode with fallback model.
  • README.md

    • Update documentation to include details about the fallback translation engine.

For more details, open the Copilot Workspace session.

Fixes #42

Implement a fallback translation engine for flagged or failed translations.

* **src/translator.mjs**
  - Add logic to handle fallback translation for flagged translations in the `translateLines` method.
  - Add logic to handle fallback translation for failed translations in the `translatePrompt` method.
  - Update the `yieldOutput` method to include fallback translation results.

* **cli/translator.mjs**
  - Add CLI flags for fallback model.
  - Add CLI option for unstructured mode fallback when using structured mode with fallback model.

* **README.md**
  - Update documentation to include details about the fallback translation engine.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Cerlancism/chatgpt-subtitle-translator/issues/42?shareId=XXXX-XXXX-XXXX-XXXX).
@Cerlancism Cerlancism closed this Nov 16, 2024
@Cerlancism Cerlancism deleted the add-fallback-translator branch November 16, 2024 19:00
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.

Feature idea: fallback translator
1 participant