class OpenAI::GPT
- OpenAI::GPT
- PlaceOS::Driver
- Reference
- Object
Defined in:
open_ai/gpt.crClass Method Summary
Instance Method Summary
-
#chat(model : String, message : Message | Array(Message))
creates a completion for the chat message
- #completion_tokens : Int64
-
#model(id : String)
returns the details of the provided model id
-
#models
returns the available models for the current key
- #on_update
- #prompt_tokens : Int64
- #total_tokens : Int64
Class Method Detail
Instance Method Detail
creates a completion for the chat message