class

Metadata

Inherits Application < ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object

description of the welcome klass

Constants

HUMAN_NAME = App::NAME.gsub(/\-|\_/, ' ')
MODEL_NAME = App::NAME.gsub(/\-/, '_')
OPENAPI = File.exists?("openapi.yml") ? YAML.parse(File.read("openapi.yml")) : ActionController::OpenAPI.generate_open_api_docs(title: HUMAN_NAME, version: App::VERSION, description: App::DESCRIPTION || "OpenAPI docs for ChatGPT plugin")

this file is built as part of the docker build

PARSER_LIST = ["application/json"]

description of the welcome klass

RESPONDER_LIST = ["application/json"]

description of the welcome klass

Class methods

ai_plugin_json(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)

Helper methods for performing redirect_to calls

base_route

Helper for obtaining base route

Instance methods

ai_plugin_json

The manifest file that defines the plugin it's using the macro DSL so it is not included in the OpenAPI docs that are provided to ChatGPT https://platform.openai.com/docs/plugins/getting-started/plugin-manifest

Source
base_route(*args, **options)

Helper for obtaining base route

base_route(*args, **options, &)

Helper for obtaining base route

openapi_json

returns the OpenAPI representation of this service in JSON format https://platform.openai.com/docs/plugins/getting-started/openapi-definition

Source
openapi_yaml

returns the OpenAPI representation of this service in YAML format https://platform.openai.com/docs/plugins/getting-started/openapi-definition

Source