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β
Name | Reference | Type | Required | Default | Options | Description |
---|---|---|---|---|---|---|
API Key | CHATGPT_API_KEY | Password | β | - | - | API Key from OpenAI |
Text File to Translate | CHATGPT_TEXT_FILE | Alphanumeric | β | - | - | The file that you would like to translate |
Language | CHATGPT_LANGUAGE | Alphanumeric | β | - | - | The language you would like the text translated to. It should be in ISO 639-1 format for best accuracy. |
Translation File Name | CHATGPT_DESTINATION_FILE_NAME | Alphanumeric | β | - | - | 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'