Class: Foobara::Ai::OpenAiApi::ListModels

Inherits:
BaseCommand show all
Includes:
CachedCommand
Defined in:
foobara-open-ai-api-1.0.1/src/foobara/ai/open_ai_api/list_models.rb

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Instance Method Summary collapse

Methods inherited from BaseCommand

#api_token, #api_token_from_env, #build_request_headers, #issue_http_request

Methods inherited from Command

install!

Methods included from TruncatedInspect

#inspect, truncating

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included

Instance Method Details

#build_resultObject



17
18
19
# File 'src/foobara/ai/open_ai_api/list_models.rb', line 17

def build_result
  response_body["data"]
end