We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a018e commit ff70044Copy full SHA for ff70044
lib/ruby_llm/active_record/acts_as.rb
@@ -139,7 +139,7 @@ module MessageMethods
139
def to_llm
140
RubyLLM::Message.new(
141
role: role.to_sym,
142
- content: content,
+ content: extract_content,
143
tool_calls: extract_tool_calls,
144
tool_call_id: extract_tool_call_id,
145
input_tokens: input_tokens,
@@ -164,6 +164,10 @@ def extract_tool_calls
164
def extract_tool_call_id
165
parent_tool_call&.tool_call_id
166
end
167
+
168
+ def extract_content
169
+ content
170
+ end
171
172
173
lib/ruby_llm/version.rb
@@ -1,5 +1,5 @@
1
# frozen_string_literal: true
2
3
module RubyLLM
4
- VERSION = '0.1.0.pre24'
+ VERSION = '0.1.0.pre25'
5
0 commit comments