ChatGPT - Add Comments to Code
Overviewβ
First time using this Blueprint? Make sure you follow our ChatGPT authorization guide.β
Takes in a script as a file or typed out and returns a script as a file with comments in the code to help with readability.
Variablesβ
Name | Reference | Type | Required | Default | Options | Description |
---|---|---|---|---|---|---|
API Key | CHATGPT_API_KEY | Password | β | - | - | API Key from OpenAI |
Initial Code Script | CHATGPT_SCRIPT | Alphanumeric | β | - | - | Original code script that needs commenting |
Initial Code Script Typed Out | CHATGPT_SCRIPT_TYPED | Alphanumeric | β | - | - | Typed out code script |
Exported Code Script Name | CHATGPT_EXPORTED_FILE_NAME | Alphanumeric | β | - | - | Script name of commented code |
YAMLβ
Below is the YAML template for this Blueprint and can be used in the Fleet YAML Editor.
source:
blueprint: ChatGPT - Add Comments to Code
inputs:
CHATGPT_API_KEY: null ## REQUIRED
CHATGPT_SCRIPT: null
CHATGPT_SCRIPT_TYPED: null
CHATGPT_EXPORTED_FILE_NAME: null ## REQUIRED
type: BLUEPRINT
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- '0'