llama_bot_rails 0.1.14 → 0.1.15
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/app/channels/llama_bot_rails/chat_channel.rb +14 -3
- data/lib/llama_bot_rails/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2980680620ba107e40e8a37a0c885904d48ef1c1e48a2fe1ccfffc59257e72dc
|
4
|
+
data.tar.gz: fbab7ffd1aa4fd6c43568bda008094cb4c5341626284aea8b9c0c4fbf565fd82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f445dd978190f9e987979322e24d18e70a364deaf07e521a6bb1b6e26ecd6b9e82448a0a48a08c22e83942ac7f711c4719444a1fd8f20b6098e9990c552fa4e
|
7
|
+
data.tar.gz: 1453feba5f8148ce85afcfcf2401b5763e39d1893678b71bcdb693a13090638ce7ead883caa6bc18f83cc8ee792f3da9e0bd8d660cd6a31e51b7390a8eb78104
|
@@ -209,9 +209,20 @@ module LlamaBotRails
|
|
209
209
|
end
|
210
210
|
|
211
211
|
uri = URI(websocket_url)
|
212
|
-
|
213
|
-
|
214
|
-
|
212
|
+
|
213
|
+
# Normalize the WebSocket URI scheme so it is always either ws:// or wss://.
|
214
|
+
# We want to gracefully handle users passing in http/https URLs or omitting a scheme entirely.
|
215
|
+
case uri.scheme&.downcase
|
216
|
+
when 'wss', 'ws'
|
217
|
+
# already valid, do nothing
|
218
|
+
when 'https'
|
219
|
+
uri.scheme = 'wss'
|
220
|
+
when 'http'
|
221
|
+
uri.scheme = 'ws'
|
222
|
+
else
|
223
|
+
# If a scheme is missing or unrecognized, fall back to sensible defaults
|
224
|
+
uri.scheme = Rails.env.development? ? 'ws' : 'wss'
|
225
|
+
end
|
215
226
|
|
216
227
|
endpoint = Async::HTTP::Endpoint.new(
|
217
228
|
uri,
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: llama_bot_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kody Kendall
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rails
|
@@ -166,7 +165,6 @@ licenses:
|
|
166
165
|
- MIT
|
167
166
|
metadata:
|
168
167
|
homepage_uri: https://llamapress.ai
|
169
|
-
post_install_message:
|
170
168
|
rdoc_options: []
|
171
169
|
require_paths:
|
172
170
|
- lib
|
@@ -181,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
179
|
- !ruby/object:Gem::Version
|
182
180
|
version: '0'
|
183
181
|
requirements: []
|
184
|
-
rubygems_version: 3.
|
185
|
-
signing_key:
|
182
|
+
rubygems_version: 3.7.1
|
186
183
|
specification_version: 4
|
187
184
|
summary: LlamaBotRails is a gem that turns your existing Rails App into an AI Agent
|
188
185
|
by connecting it to an open source LangGraph agent, LlamaBot.
|