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::
MessageChoice
LLM::CLI::OpenAI::MessageChoice
Struct
Value
Object
Included Modules
JSON::Serializable
Defined in:
llm-cli/chat/openai/chat_completion.cr
Constructors
.new
(pull : JSON::PullParser)
Instance Method Summary
#finish_reason
: String
#index
: Int32
#message
: Chat::Message
Constructor Detail
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
Instance Method Detail
def
finish_reason
: String
#
[
View source
]
def
index
: Int32
#
[
View source
]
def
message
:
Chat::Message
#
[
View source
]