About Ask Chatgpt
Ask ChatGPT is an open source Ruby gem that brings an OpenAI powered assistant into the Rails console. Developers call a gpt object from the console to ask questions about their own application, passing in models, classes, methods or JSON payloads as context, and the assistant answers with code suggestions, explanations or transformed data.
It is built for Ruby on Rails developers who want AI help without leaving their terminal. Built in commands refactor or improve a named method, write RSpec or unit tests for a class, run a code review, look for bugs, explain a model, and extract data from JSON. A command line tool answers quick questions outside Rails, such as arithmetic or Base64 encoding, and a voice mode records a spoken question through the microphone using ffmpeg. An initializer configures the OpenAI access token, model, temperature, token limit, streaming output and Markdown rendering, and developers can register custom prompts as new console methods.
The gem is free under the MIT licence. It requires an OpenAI API key, so usage is billed by OpenAI at its standard API rates.
The gem was created by Igor Kasyanchuk and Liubomyr Manastyretskyi and is published under the RailsJazz GitHub organisation; the listed website is the author's personal page, which does not describe it. The latest release on RubyGems is version 0.6.1 from June 2023 and its default model setting is an older OpenAI chat model, so buyers should expect to adjust the configuration for current models.