ruby_llm 0.1.0.pre26 → 0.1.0.pre27
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/README.md +5 -5
- data/lib/ruby_llm/version.rb +1 -1
- data/ruby_llm.gemspec +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd52ddd301a631215257c48fa3c1bc460203a228128b7d8c4c2f4837beaf2f63
|
4
|
+
data.tar.gz: a0cfae0a59ff41ffeef2a1c64ff660a61839147d2587769e8e7760555fd7f8a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 854ea7639ed9e01aafe2ff987bebc47023529544525ec86dbfd1e216119ad6affae78dcadbf4d565f061970ae85454f00bcb7a3f42f6eebd876f6fa3287b8616
|
7
|
+
data.tar.gz: 99bf687ffca1d6ba80745a9406bb96f47148a9bb5a0ed499cddda5e10461675ecb5c434e12e5e3a208f4877fca5bd57b59ab15dd8e9f0f1473c66b86c44fdeb9
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# RubyLLM
|
2
2
|
|
3
|
-
A delightful Ruby
|
3
|
+
A delightful Ruby way to work with AI language models. Provides a unified interface to OpenAI, Anthropic, Google, and DeepSeek models with automatic token counting, proper streaming support, and a focus on developer happiness. No wrapping your head around multiple APIs - just clean Ruby code that works.
|
4
4
|
|
5
5
|
<p align="center">
|
6
6
|
<img src="https://upload.wikimedia.org/wikipedia/commons/4/4d/OpenAI_Logo.svg" alt="OpenAI" height="40" width="120">
|
@@ -73,7 +73,7 @@ image_models = RubyLLM.models.image_models
|
|
73
73
|
Conversations are simple and natural:
|
74
74
|
|
75
75
|
```ruby
|
76
|
-
chat = RubyLLM.chat model: '
|
76
|
+
chat = RubyLLM.chat model: 'gemini-2.0-flash'
|
77
77
|
|
78
78
|
# Ask questions
|
79
79
|
response = chat.ask "What's your favorite Ruby feature?"
|
@@ -101,7 +101,7 @@ Need vector embeddings for your text? RubyLLM makes it simple:
|
|
101
101
|
RubyLLM.embed "Hello, world!"
|
102
102
|
|
103
103
|
# Use a specific model
|
104
|
-
RubyLLM.embed "Ruby is awesome!", model: "text-embedding-
|
104
|
+
RubyLLM.embed "Ruby is awesome!", model: "text-embedding-004"
|
105
105
|
|
106
106
|
# Process multiple texts at once
|
107
107
|
RubyLLM.embed([
|
@@ -165,7 +165,7 @@ search = Search.new repo: Document
|
|
165
165
|
chat.with_tools search, Calculator
|
166
166
|
|
167
167
|
# Configure as needed
|
168
|
-
chat.with_model('claude-3-
|
168
|
+
chat.with_model('claude-3-5-sonnet-20241022')
|
169
169
|
.with_temperature(0.9)
|
170
170
|
|
171
171
|
chat.ask "What's 2+2?"
|
@@ -373,7 +373,7 @@ class WeatherTool < RubyLLM::Tool
|
|
373
373
|
end
|
374
374
|
|
375
375
|
# Use tools with your persisted chats
|
376
|
-
chat = Chat.create! model_id: "
|
376
|
+
chat = Chat.create! model_id: "deepseek-reasoner"
|
377
377
|
chat.chat.with_tool WeatherTool.new
|
378
378
|
|
379
379
|
# Ask about weather - tool usage is automatically saved
|
data/lib/ruby_llm/version.rb
CHANGED
data/ruby_llm.gemspec
CHANGED
@@ -10,9 +10,9 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = 'Clean Ruby interface to modern AI language models'
|
12
12
|
spec.description = 'A delightful Ruby way to work with AI language models. Provides a unified interface to OpenAI' \
|
13
|
-
' and
|
14
|
-
' developer happiness. No wrapping your head around multiple APIs
|
15
|
-
' works.'
|
13
|
+
', Anthropic, Google, and DeepSeek models with automatic token counting, proper streaming' \
|
14
|
+
' support, and a focus on developer happiness. No wrapping your head around multiple APIs' \
|
15
|
+
' - just clean Ruby code that works.'
|
16
16
|
spec.homepage = 'https://github.com/crmne/ruby_llm'
|
17
17
|
spec.license = 'MIT'
|
18
18
|
spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_llm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carmine Paolino
|
@@ -323,9 +323,9 @@ dependencies:
|
|
323
323
|
- !ruby/object:Gem::Version
|
324
324
|
version: '0.9'
|
325
325
|
description: A delightful Ruby way to work with AI language models. Provides a unified
|
326
|
-
interface to OpenAI and
|
327
|
-
support, and a focus on developer happiness. No wrapping
|
328
|
-
APIs - just clean Ruby code that works.
|
326
|
+
interface to OpenAI, Anthropic, Google, and DeepSeek models with automatic token
|
327
|
+
counting, proper streaming support, and a focus on developer happiness. No wrapping
|
328
|
+
your head around multiple APIs - just clean Ruby code that works.
|
329
329
|
email:
|
330
330
|
- carmine@paolino.me
|
331
331
|
executables: []
|