Module: OllamaChat::MessageFormat
- Included in:
- Chat, FollowChat, MessageList
- Defined in:
- lib/ollama_chat/message_format.rb
Instance Method Summary collapse
Instance Method Details
#message_type(images) ⇒ Object
2 3 4 |
# File 'lib/ollama_chat/message_format.rb', line 2 def (images) images.present? ? ? |
#talk_annotate(&block) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/ollama_chat/message_format.rb', line 14 def talk_annotate(&block) string = block.() string.to_s.size == 0 and return if @chat.think.on? "💬\n#{string}\n" else string end end |
#think_annotate(&block) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/ollama_chat/message_format.rb', line 6 def think_annotate(&block) string = block.() string.to_s.size == 0 and return if @chat.think.on? "💭\n#{string}\n" end end |