Skip to main content

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​

NameReferenceTypeRequiredDefaultOptionsDescription
API KeyCHATGPT_API_KEYPasswordβœ…--API Key from OpenAI
Initial Code ScriptCHATGPT_SCRIPTAlphanumericβž–--Original code script that needs commenting
Initial Code Script Typed OutCHATGPT_SCRIPT_TYPEDAlphanumericβž–--Typed out code script
Exported Code Script NameCHATGPT_EXPORTED_FILE_NAMEAlphanumericβœ…--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'