Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
chatgpt-cli
v0.6.1
ChatGPT
ApiKeyError
CLI
Parser
Client
Config
ConfigData
Generator
Html
HtmlGenerationError
Message
Launcher
Magic
Base
Cd
Clear
Config
Copy
Debug
Edit
Help
History
Html
List
Load
Model
Response
Resume
Save
Shift
System
Tokens
Undo
Webapp
Write
PostData
ResponseData
SigIntError
Substitutor
Base
Command
FilePath
Stderr
Stdout
SystemCommand
Colorize
ObjectExtensions
HTTP
Client
Generated using Crystal 1.11.2
2024-11-02 08:23:31 UTC
class
ChatGPT::
ResponseData
ChatGPT::ResponseData
Reference
Object
Defined in:
chatgpt/response_data.cr
Constructors
.new
(data)
Instance Method Summary
#assistant_message
#to_pretty_json
#tokens
#total_tokens
Constructor Detail
def self.
new
(data)
#
[
View source
]
Instance Method Detail
def
assistant_message
#
[
View source
]
def
to_pretty_json
#
[
View source
]
def
tokens
#
[
View source
]
def
total_tokens
#
[
View source
]