Skip to main content

ChatGPT - Translate a Text File

Overview​

First time using this Blueprint? Make sure you follow our ChatGPT authorization guide.​

This Blueprint takes in a text file and translate it to the language that is chosen.

Variables​

NameReferenceTypeRequiredDefaultOptionsDescription
API KeyCHATGPT_API_KEYPasswordβœ…--API Key from OpenAI
Text File to TranslateCHATGPT_TEXT_FILEAlphanumericβœ…--The file that you would like to translate
LanguageCHATGPT_LANGUAGEAlphanumericβœ…--The language you would like the text translated to. It should be in ISO 639-1 format for best accuracy.
Translation File NameCHATGPT_DESTINATION_FILE_NAMEAlphanumericβœ…--File name of translated text

YAML​

Below is the YAML template for this Blueprint and can be used in the Fleet YAML Editor.

source:
blueprint: ChatGPT - Translate a Text File
inputs:
CHATGPT_API_KEY: null ## REQUIRED
CHATGPT_TEXT_FILE: null ## REQUIRED
CHATGPT_LANGUAGE: null ## REQUIRED
CHATGPT_DESTINATION_FILE_NAME: null ## REQUIRED
type: BLUEPRINT
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- '0'