ruby_llm 0.1.0.pre46 → 0.1.0.pre47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec_status +9 -9
- data/lib/ruby_llm/active_record/acts_as.rb +3 -3
- data/lib/ruby_llm/version.rb +1 -1
- data/lib/ruby_llm.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92de102c05319b9254741ad429d08bb6d3df6fca1037bb1acdb9a818fb3f4f2f
|
4
|
+
data.tar.gz: f8b1e3b1e10d3a666e1f8b7383b98cc832dd90fb7afed0958f9ec37d6206f180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d8d351c5b6597ac5501dff34f489866de04ea7230fb317fcb0762be39d9df1d33ecb040a1eaa056125597078ebf1e155de2dfd4ea5b996e4b20807ac8f7247c
|
7
|
+
data.tar.gz: a13dfa9b28566cb700380ab0ba7876e824b04dd61962158e9ccc3f9dff2f6524fb7e7692e48546ecbaf8c43d5d5cf16ce66fa3a940602032c7dcf59dbc9e5d07
|
data/.rspec_status
CHANGED
@@ -21,15 +21,15 @@ example_id | status | run_time |
|
|
21
21
|
./spec/ruby_llm/chat_streaming_spec.rb[1:1:2:1] | passed | 0.50088 seconds |
|
22
22
|
./spec/ruby_llm/chat_streaming_spec.rb[1:1:3:1] | passed | 5.69 seconds |
|
23
23
|
./spec/ruby_llm/chat_streaming_spec.rb[1:1:4:1] | passed | 1.22 seconds |
|
24
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:1
|
25
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
26
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
27
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
28
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
29
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
30
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
31
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
32
|
-
./spec/ruby_llm/chat_tools_spec.rb[1:1:
|
24
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:1] | passed | 4.26 seconds |
|
25
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:2] | passed | 6.16 seconds |
|
26
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:3] | passed | 11.15 seconds |
|
27
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:4] | passed | 1.3 seconds |
|
28
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:5] | passed | 2.71 seconds |
|
29
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:6] | passed | 2.43 seconds |
|
30
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:7] | passed | 2.71 seconds |
|
31
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:8] | passed | 4 seconds |
|
32
|
+
./spec/ruby_llm/chat_tools_spec.rb[1:1:9] | passed | 2.81 seconds |
|
33
33
|
./spec/ruby_llm/embeddings_spec.rb[1:1:1:1] | passed | 0.33357 seconds |
|
34
34
|
./spec/ruby_llm/embeddings_spec.rb[1:1:1:2] | passed | 0.43632 seconds |
|
35
35
|
./spec/ruby_llm/embeddings_spec.rb[1:1:2:1] | passed | 0.65614 seconds |
|
@@ -96,7 +96,7 @@ module RubyLLM
|
|
96
96
|
private
|
97
97
|
|
98
98
|
def persist_new_message
|
99
|
-
messages.create!(
|
99
|
+
@message = messages.create!(
|
100
100
|
role: :assistant,
|
101
101
|
content: String.new
|
102
102
|
)
|
@@ -110,7 +110,7 @@ module RubyLLM
|
|
110
110
|
end
|
111
111
|
|
112
112
|
transaction do
|
113
|
-
|
113
|
+
@message.update!(
|
114
114
|
role: message.role,
|
115
115
|
content: message.content,
|
116
116
|
model_id: message.model_id,
|
@@ -126,7 +126,7 @@ module RubyLLM
|
|
126
126
|
tool_calls.each_value do |tool_call|
|
127
127
|
attributes = tool_call.to_h
|
128
128
|
attributes[:tool_call_id] = attributes.delete(:id)
|
129
|
-
|
129
|
+
@message.tool_calls.create!(**attributes)
|
130
130
|
end
|
131
131
|
end
|
132
132
|
end
|
data/lib/ruby_llm/version.rb
CHANGED
data/lib/ruby_llm.rb
CHANGED