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

Enhancement: Translations via OpenAI's gpt-3.5-turbo API #435

Open
jeffturcotte opened this issue Apr 25, 2023 · 0 comments
Open

Enhancement: Translations via OpenAI's gpt-3.5-turbo API #435

jeffturcotte opened this issue Apr 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jeffturcotte
Copy link

@blafferty

We'd like to create a custom translation connector that utilizes OpenAI's gpt-3.5-turbo API in order to facilitate translations.

At a high-level, the implementation would include:

  • A new ChatGPTApiClient, closely aligned to the existing Acclaro and Google clients.
  • A new ChatGPTTranslationService implementing TranslationServiceInterface that uses the aforementioned GPTApiClient to perform the necessary translations. This service would closely mirror the existing Google service but would utilize a separate client.

OpenAI API Docs: https://platform.openai.com/docs/guides/chat

The GPTApiClient would allow customization via settings of the following:

  • API Key. required
  • Organization Id: optional
  • ChatGPT Model: optional, defaulting to gpt-3.5-turbo
  • System Prompt: optional, defaulting to something like: You are an expert language translator. You repeat exactly what is said in {sourceLanguage} in {targetLanguage}. Only return the translated text. Our vision is that this works as a very simple template and sourceLanguage and targetLanguage are injected.

We have a PoC that is already functioning, but needs some refactoring and clean-up.

@sidedwards sidedwards added the enhancement New feature or request label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants