ChatGPT - Translate a Text File
Overview
This Template takes in a text file and translate it to the language that is chosen.
Variables
| Name | Reference | Type | Required | Default | Options | Description |
|---|---|---|---|---|---|---|
| Model | CHATGPT_MODEL | Select | ➖ | gpt-5 | GPT-5: gpt-5 GPT-5-Mini: gpt-5-mini GPT-5-Nano: gpt-5-nano GPT-4.1: gpt-4.1 | Model to use |
| 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 |
| Destination Folder Name | CHATGPT_DESTINATION_FOLDER_NAME | Alphanumeric | ➖ | - | - |
YAML
Below is the YAML template
source:
template: ChatGPT - Translate a Text File
inputs:
CHATGPT_MODEL: gpt-5
CHATGPT_TEXT_FILE:
CHATGPT_LANGUAGE:
CHATGPT_DESTINATION_FILE_NAME:
CHATGPT_DESTINATION_FOLDER_NAME:
type: TEMPLATE
guardrails:
retry_count: 0
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 200