class ChatGPT::CLI

Defined in:

chatgpt/cli.cr
chatgpt/cli/parser.cr
chatgpt/cli/version.cr

Constant Summary

SOURCE_URL = "https://github.com/kojix2/chatgpt-cli"
VERSION = {{ (`shards version /srv/crystaldoc.info/gitlab-kojix2-chatgpt-cli-v0.2.1/src/chatgpt/cli`).chomp.stringify }}

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def chat_gpt_client : ChatGPT::Client #

[View source]
def code_blocks : Array(File) #

[View source]
def interactive : Bool #

[View source]
def magic_command_runner : ChatGPT::MagicCommandRunner #

[View source]
def main_run(input_msg) #

[View source]
def post_data : PostData #

[View source]
def response_data : ResponseData #

[View source]
def run #

[View source]
def run_as_oneliner #

[View source]
def run_interacitively #

[View source]
def substitutor : ChatGPT::InputSubstitutor #

[View source]
def system_command_runner : ChatGPT::SystemCommandRunner #

[View source]
def total_tokens : Int32 #

[View source]