Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
llm-cli
main
LLM
CLI
Chat
Error
Message
Requirements
Role
OpenAI
ChatCompletion
CreateChatCompletion
GPT
List
MessageChoice
Model
Usage
Prompt
Response
Command
Thoughts
Shell
Generated using Crystal 1.14.0
2024-11-26 09:40:02 UTC
struct
LLM::
CLI::
OpenAI::
ChatCompletion
LLM::CLI::OpenAI::ChatCompletion
Struct
Value
Object
Included Modules
JSON::Serializable
Defined in:
llm-cli/chat/openai/chat_completion.cr
Constructors
.new
(pull : JSON::PullParser)
Instance Method Summary
#choices
: Array(MessageChoice)
#created
: Time
#id
: String
#object
: String
#usage
: Usage
Constructor Detail
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
Instance Method Detail
def
choices
: Array(
MessageChoice
)
#
[
View source
]
def
created
: Time
#
[
View source
]
def
id
: String
#
[
View source
]
def
object
: String
#
[
View source
]
def
usage
:
Usage
#
[
View source
]