rails_ai 0.1.8 → 0.2.0
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/lib/rails_ai/version.rb +1 -1
- data/lib/rails_ai.rb +3 -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: dbe911d524fca6685a69e9d39f67530eed8f4cc439e59888f4dfff1d69d18692
|
4
|
+
data.tar.gz: 9f6523e57f41ee4f32429bb944b7eb5d7c326c178e52416df731c654e1105c33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02de84c72fb626fbd5f203a300d6ed622fd276467e48e36cd269aed660e9c36c2a414d241d991685446ba9c09aca4c722d6eba13b6d74f22bad99bd201b85b8e
|
7
|
+
data.tar.gz: d0c2119e41b0e50f2f3aa4fa6600d5848ee62f08731d91ff4255834304dc390611c9d83aeb9978615ba7b78b5b663299716a0dfba53530f000c31df8773704ad
|
data/lib/rails_ai/version.rb
CHANGED
data/lib/rails_ai.rb
CHANGED
@@ -474,7 +474,6 @@ module RailsAi
|
|
474
474
|
messages
|
475
475
|
end
|
476
476
|
end
|
477
|
-
end
|
478
477
|
|
479
478
|
# Security methods
|
480
479
|
def self.validate_input(input, type: :text)
|
@@ -502,6 +501,8 @@ end
|
|
502
501
|
end
|
503
502
|
require_relative "rails_ai/web_search"
|
504
503
|
|
504
|
+
# Web-enhanced chat with real-time information
|
505
|
+
|
505
506
|
# Web-enhanced chat with real-time information
|
506
507
|
def self.chat_with_web_search(prompt, model: config.default_model, **opts)
|
507
508
|
# Check if the prompt needs web search
|
@@ -532,3 +533,4 @@ require_relative "rails_ai/web_search"
|
|
532
533
|
chat(prompt, model: model, **opts)
|
533
534
|
end
|
534
535
|
end
|
536
|
+
end
|