Class: LLM::OpenAI::Format::RespondFormat
- Inherits:
-
Object
- Object
- LLM::OpenAI::Format::RespondFormat
- Defined in:
- lib/llm/providers/openai/format/respond_format.rb
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(message) ⇒ RespondFormat
constructor
A new instance of RespondFormat.
Constructor Details
#initialize(message) ⇒ RespondFormat
Returns a new instance of RespondFormat.
10 11 12 |
# File 'lib/llm/providers/openai/format/respond_format.rb', line 10 def initialize() @message = end |
Instance Method Details
#format ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/llm/providers/openai/format/respond_format.rb', line 14 def format catch(:abort) do if Hash === {role: [:role], content: format_content([:content])} else end end end |