lex-llm-gemini 0.4.5 → 0.4.7
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/.rubocop.yml +5 -0
- data/CHANGELOG.md +27 -0
- data/Gemfile +8 -2
- data/README.md +9 -1
- data/RULES.md +97 -0
- data/lex-llm-gemini.gemspec +1 -1
- data/lib/legion/extensions/llm/gemini/actors/discovery.rb +24 -0
- data/lib/legion/extensions/llm/gemini/helpers/callable.rb +207 -0
- data/lib/legion/extensions/llm/gemini/provider.rb +169 -182
- data/lib/legion/extensions/llm/gemini/runners/discovery.rb +309 -0
- data/lib/legion/extensions/llm/gemini/runners/fleet_worker.rb +0 -2
- data/lib/legion/extensions/llm/gemini/version.rb +1 -1
- data/lib/legion/extensions/llm/gemini.rb +32 -9
- metadata +7 -4
- data/lib/legion/extensions/llm/gemini/actors/discovery_refresh.rb +0 -1168
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'digest'
|
|
4
|
+
require 'time'
|
|
5
|
+
require 'uri'
|
|
6
|
+
require 'faraday'
|
|
7
|
+
|
|
8
|
+
require 'legion/extensions/llm/discovery/pipeline'
|
|
9
|
+
require 'legion/extensions/llm/gemini/helpers/callable'
|
|
10
|
+
require 'legion/extensions/llm/gemini/provider'
|
|
11
|
+
|
|
12
|
+
module Legion
|
|
13
|
+
module Extensions
|
|
14
|
+
module Llm
|
|
15
|
+
module Gemini
|
|
16
|
+
module Runners
|
|
17
|
+
# Gemini discovery runner: ONLY the Gemini-specific work. The
|
|
18
|
+
# generic reconcile / claim / activate / probe (cadence + reactive) /
|
|
19
|
+
# replace / weight-publication / health-display pipeline is mixed in
|
|
20
|
+
# from the shared Discovery::Pipeline. Weight is NOT computed here —
|
|
21
|
+
# the shared WeightReconciler recomputes it from live settings at
|
|
22
|
+
# publish.
|
|
23
|
+
#
|
|
24
|
+
# The catalog is Gemini's own list-models API (GET models ->
|
|
25
|
+
# body[:models], entries named `models/<id>`), not OpenAI-shaped, so
|
|
26
|
+
# fetch_raw_models / model_id_from / check_health are overridden.
|
|
27
|
+
# The overrides are the x-goog-api-key auth header (not bearer), the
|
|
28
|
+
# /v1beta base URL, the 8-char-credential physical id, and the
|
|
29
|
+
# offering-draft evidence.
|
|
30
|
+
module Discovery
|
|
31
|
+
extend self
|
|
32
|
+
include Legion::Extensions::Llm::Discovery::Pipeline
|
|
33
|
+
|
|
34
|
+
# ── Gemini instance-config keys / connection ─────────────────────
|
|
35
|
+
def catalog_base_url(instance_cfg:)
|
|
36
|
+
(instance_cfg[:gemini_api_base] || instance_cfg[:endpoint] ||
|
|
37
|
+
'https://generativelanguage.googleapis.com/v1beta').to_s
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def auth_token(instance_cfg:)
|
|
41
|
+
token = instance_cfg[:gemini_api_key] || instance_cfg[:api_key] ||
|
|
42
|
+
instance_cfg.dig(:credentials, :api_key)
|
|
43
|
+
token if token.is_a?(String) && !token.strip.empty?
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Gemini authenticates with the x-goog-api-key header, not a
|
|
47
|
+
# bearer Authorization header.
|
|
48
|
+
def apply_auth_headers(faraday:, instance_cfg:)
|
|
49
|
+
api_key = instance_cfg[:gemini_api_key] || instance_cfg[:api_key] ||
|
|
50
|
+
instance_cfg.dig(:credentials, :api_key)
|
|
51
|
+
return unless api_key.is_a?(String) && !api_key.strip.empty?
|
|
52
|
+
|
|
53
|
+
faraday.headers['x-goog-api-key'] = api_key
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Readiness is a safe non-inference models listing
|
|
57
|
+
# (GET models?pageSize=1). The probe is overridden rather than
|
|
58
|
+
# health_path: an absolute path would resolve against the host
|
|
59
|
+
# root and drop the /v1beta prefix of the base URL.
|
|
60
|
+
def check_health(instance_cfg:)
|
|
61
|
+
base_url = catalog_base_url(instance_cfg: instance_cfg)
|
|
62
|
+
conn = build_connection(base_url: base_url, instance_cfg: instance_cfg, timeout: 15, open_timeout: 5)
|
|
63
|
+
response = conn.get('models', { pageSize: 1 })
|
|
64
|
+
models_api_readiness(response: response, base_url: base_url)
|
|
65
|
+
rescue Faraday::ConnectionFailed => e
|
|
66
|
+
handle_exception(e, level: :warn, handled: true,
|
|
67
|
+
operation: 'gemini.runner.discovery.health.connection', base_url: base_url)
|
|
68
|
+
readiness_error_result(error: e, reason: "Gemini models API connection failed: #{e.message}")
|
|
69
|
+
rescue StandardError => e
|
|
70
|
+
raise e if discovery_programming_error?(e)
|
|
71
|
+
|
|
72
|
+
handle_exception(e, level: :warn, handled: true,
|
|
73
|
+
operation: 'gemini.runner.discovery.health', base_url: base_url)
|
|
74
|
+
readiness_error_result(error: e, reason: "Gemini models API error: #{e.message}")
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# The catalog is GET models -> body[:models] (not the
|
|
78
|
+
# OpenAI-compatible /v1/models -> body[:data]).
|
|
79
|
+
def fetch_raw_models(instance_cfg:)
|
|
80
|
+
base_url = catalog_base_url(instance_cfg: instance_cfg)
|
|
81
|
+
conn = build_connection(base_url: base_url, instance_cfg: instance_cfg,
|
|
82
|
+
timeout: 15, open_timeout: 5)
|
|
83
|
+
response = conn.get('models')
|
|
84
|
+
unless response.status.between?(
|
|
85
|
+
200, 299
|
|
86
|
+
)
|
|
87
|
+
raise CatalogFetchFailure,
|
|
88
|
+
"catalog fetch returned HTTP #{response.status}"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
Array(Legion::JSON.load(response.body)[:models])
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# The models API lists each entry under :name as `models/<id>`.
|
|
95
|
+
def model_id_from(model_data)
|
|
96
|
+
name = model_data[:name] || model_data['name'] || ''
|
|
97
|
+
name.to_s.delete_prefix('models/')
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
def build_callable(instance_cfg:)
|
|
101
|
+
Legion::Extensions::Llm::Gemini::Helpers::Callable.new(instance_cfg: instance_cfg, logger: log)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# ── Secondary physical id (dedup/diagnostics only) ────────────────
|
|
105
|
+
# host:port, or host:port/ak:<8-char credential digest> when a key
|
|
106
|
+
# is present. Never identity — the instance identity is the
|
|
107
|
+
# operator's config name.
|
|
108
|
+
def derive_physical_id(instance_cfg:)
|
|
109
|
+
host_port = extract_host_port(url: catalog_base_url(instance_cfg: instance_cfg))
|
|
110
|
+
api_key = auth_token(instance_cfg: instance_cfg)
|
|
111
|
+
return "#{host_port}/ak:#{::Digest::SHA256.hexdigest(api_key)[0, 8]}" if api_key
|
|
112
|
+
|
|
113
|
+
host_port
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def extract_host_port(url:)
|
|
117
|
+
uri = URI.parse(url.to_s)
|
|
118
|
+
"#{uri.host || 'generativelanguage.googleapis.com'}:#{uri.port}"
|
|
119
|
+
rescue URI::InvalidURIError => e
|
|
120
|
+
handle_exception(e, level: :warn, handled: true,
|
|
121
|
+
operation: 'gemini.runner.discovery.extract_host_port', url: url.to_s)
|
|
122
|
+
'unknown:0'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# ── Offering draft (evidence + metadata; NO weight) ───────────────
|
|
126
|
+
def build_offering_draft(instance_cfg:, instance_key:, model_id:, model_data:)
|
|
127
|
+
tier = instance_cfg[:tier] || :frontier
|
|
128
|
+
generation_methods = extract_generation_methods(model_data: model_data)
|
|
129
|
+
|
|
130
|
+
Legion::Extensions::Llm::Inventory::OfferingDraft.new(
|
|
131
|
+
provider_native_key: model_id, model: model_id, tier: tier,
|
|
132
|
+
operation_evidence: build_operation_evidence(generation_methods: generation_methods),
|
|
133
|
+
capability_evidence: build_capability_evidence(generation_methods: generation_methods),
|
|
134
|
+
context_evidence: build_context_evidence(model_data: model_data),
|
|
135
|
+
max_output_evidence: build_max_output_evidence(model_data: model_data),
|
|
136
|
+
embedding_dimensions_evidence: build_embedding_dimensions_evidence(
|
|
137
|
+
model_data: model_data, generation_methods: generation_methods
|
|
138
|
+
),
|
|
139
|
+
model_revision_evidence: build_model_revision_evidence(model_data: model_data),
|
|
140
|
+
tokenizer_evidence: build_tokenizer_evidence,
|
|
141
|
+
quota_domains: {},
|
|
142
|
+
metadata: build_offering_metadata(model_data: model_data, instance_key: instance_key),
|
|
143
|
+
publication_source: :provider_catalog
|
|
144
|
+
)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
private
|
|
148
|
+
|
|
149
|
+
def models_api_readiness(response:, base_url:)
|
|
150
|
+
Legion::Extensions::Llm::Inventory::ReadinessResult.new(
|
|
151
|
+
ready: response.status == 200,
|
|
152
|
+
reason: "Gemini models API returned #{response.status}",
|
|
153
|
+
metadata: { status: response.status, base_url: base_url }
|
|
154
|
+
)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
def readiness_error_result(error:, reason:)
|
|
158
|
+
Legion::Extensions::Llm::Inventory::ReadinessResult.new(
|
|
159
|
+
ready: false, reason: reason, metadata: { error_class: error.class.name }
|
|
160
|
+
)
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
def extract_generation_methods(model_data:)
|
|
164
|
+
Array(
|
|
165
|
+
model_data[:supportedGenerationMethods] ||
|
|
166
|
+
model_data[:supported_generation_methods] ||
|
|
167
|
+
model_data['supportedGenerationMethods'] ||
|
|
168
|
+
model_data['supported_generation_methods']
|
|
169
|
+
)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
def build_operation_evidence(generation_methods:)
|
|
173
|
+
now = Time.now.freeze
|
|
174
|
+
chat_status = resolve_operation_status(generation_methods: generation_methods,
|
|
175
|
+
action: 'generateContent')
|
|
176
|
+
stream_status = resolve_operation_status(generation_methods: generation_methods,
|
|
177
|
+
action: 'streamGenerateContent')
|
|
178
|
+
embed_status = resolve_operation_status(generation_methods: generation_methods, action: 'embedContent')
|
|
179
|
+
{
|
|
180
|
+
chat: op_evidence(operation: :chat, status: chat_status, observed_at: now),
|
|
181
|
+
stream_chat: op_evidence(operation: :stream_chat, status: stream_status, observed_at: now),
|
|
182
|
+
embed: op_evidence(operation: :embed, status: embed_status, observed_at: now),
|
|
183
|
+
image: op_evidence(operation: :image, status: :unsupported, observed_at: now),
|
|
184
|
+
transcribe: op_evidence(operation: :transcribe, status: :unsupported, observed_at: now),
|
|
185
|
+
translate: op_evidence(operation: :translate, status: :unsupported, observed_at: now),
|
|
186
|
+
speak: op_evidence(operation: :speak, status: :unsupported, observed_at: now),
|
|
187
|
+
moderate: op_evidence(operation: :moderate, status: :unsupported, observed_at: now),
|
|
188
|
+
count_tokens: op_evidence(operation: :count_tokens, status: :unknown, observed_at: now)
|
|
189
|
+
}
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
def resolve_operation_status(generation_methods:, action:)
|
|
193
|
+
return :unknown if generation_methods.empty?
|
|
194
|
+
|
|
195
|
+
generation_methods.include?(action) ? :supported : :unsupported
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
def op_evidence(operation:, status:, observed_at:)
|
|
199
|
+
source = status == :unknown ? :default_false : :provider_catalog
|
|
200
|
+
Legion::Extensions::Llm::Inventory::OperationEvidence.new(
|
|
201
|
+
operation: operation, status: status, source: source, observed_at: observed_at
|
|
202
|
+
)
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
def build_capability_evidence(generation_methods:)
|
|
206
|
+
{
|
|
207
|
+
completion: cap_from_method(capability: :completion, methods: generation_methods,
|
|
208
|
+
action: 'generateContent'),
|
|
209
|
+
streaming: cap_from_method(capability: :streaming, methods: generation_methods,
|
|
210
|
+
action: 'streamGenerateContent'),
|
|
211
|
+
embedding: cap_from_method(capability: :embedding, methods: generation_methods,
|
|
212
|
+
action: 'embedContent'),
|
|
213
|
+
tools: cap_evidence(capability: :tools, status: :unknown, source: :default_false),
|
|
214
|
+
thinking: cap_evidence(capability: :thinking, status: :unknown, source: :default_false),
|
|
215
|
+
vision: cap_evidence(capability: :vision, status: :unknown, source: :default_false)
|
|
216
|
+
}
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
def cap_from_method(capability:, methods:, action:)
|
|
220
|
+
present = methods.include?(action)
|
|
221
|
+
cap_evidence(
|
|
222
|
+
capability: capability,
|
|
223
|
+
status: present ? :supported : :unknown,
|
|
224
|
+
source: present ? :provider_catalog : :default_false
|
|
225
|
+
)
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
def cap_evidence(capability:, status:, source:)
|
|
229
|
+
Legion::Extensions::Llm::Inventory::CapabilityEvidence.new(
|
|
230
|
+
capability: capability, status: status, source: source, observed_at: Time.now.freeze
|
|
231
|
+
)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
def build_context_evidence(model_data:)
|
|
235
|
+
ctx = model_data[:inputTokenLimit] || model_data['inputTokenLimit'] || model_data[:input_token_limit]
|
|
236
|
+
if ctx.is_a?(Integer) && ctx.positive?
|
|
237
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :known, value: ctx,
|
|
238
|
+
source: :provider_catalog)
|
|
239
|
+
else
|
|
240
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :unknown, source: :absent)
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def build_max_output_evidence(model_data:)
|
|
245
|
+
max_out = model_data[:outputTokenLimit] || model_data['outputTokenLimit'] ||
|
|
246
|
+
model_data[:output_token_limit]
|
|
247
|
+
if max_out.is_a?(Integer) && max_out.positive?
|
|
248
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :known, value: max_out,
|
|
249
|
+
source: :provider_catalog)
|
|
250
|
+
else
|
|
251
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :unknown, source: :absent)
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
def build_embedding_dimensions_evidence(model_data:, generation_methods:)
|
|
256
|
+
unless generation_methods.include?('embedContent')
|
|
257
|
+
return Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :unknown, source: :absent)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
dims = extract_valid_dimensions(model_data: model_data)
|
|
261
|
+
if dims
|
|
262
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :known, value: dims,
|
|
263
|
+
source: :provider_catalog)
|
|
264
|
+
else
|
|
265
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :unknown, source: :absent)
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
def extract_valid_dimensions(model_data:)
|
|
270
|
+
dims = model_data[:embedding_dimensions] || model_data['embeddingDimensions']
|
|
271
|
+
return nil unless dims.is_a?(Array) && !dims.empty?
|
|
272
|
+
return nil unless dims.all? { |d| d.is_a?(Integer) && d.positive? }
|
|
273
|
+
|
|
274
|
+
dims.uniq.sort
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
def build_model_revision_evidence(model_data:)
|
|
278
|
+
revision = model_data[:version] || model_data['version']
|
|
279
|
+
if revision.is_a?(String) && !revision.strip.empty?
|
|
280
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(
|
|
281
|
+
status: :known, value: revision.strip, source: :provider_catalog
|
|
282
|
+
)
|
|
283
|
+
else
|
|
284
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :unknown, source: :absent)
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
def build_tokenizer_evidence
|
|
289
|
+
Legion::Extensions::Llm::Inventory::ValueEvidence.new(status: :unknown, source: :absent)
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
def build_offering_metadata(model_data:, instance_key:)
|
|
293
|
+
meta = { raw_model: extract_model_id(model_data: model_data) }
|
|
294
|
+
meta[:display_name] = model_data[:displayName].to_s if model_data[:displayName]
|
|
295
|
+
meta[:description] = model_data[:description].to_s[0, 200] if model_data[:description]
|
|
296
|
+
meta[:instance_id] = instance_key.instance_id
|
|
297
|
+
meta
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
def extract_model_id(model_data:)
|
|
301
|
+
name = model_data[:name] || model_data['name'] || ''
|
|
302
|
+
name.to_s.delete_prefix('models/')
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
end
|
|
@@ -22,8 +22,6 @@ module Legion
|
|
|
22
22
|
Legion::Extensions::Llm::Fleet::ProviderResponder.call(
|
|
23
23
|
payload: opts,
|
|
24
24
|
provider_family: Gemini::PROVIDER_FAMILY,
|
|
25
|
-
provider_class: Gemini::Provider,
|
|
26
|
-
provider_instances: -> { Gemini.discover_instances },
|
|
27
25
|
delivery: opts[:delivery],
|
|
28
26
|
properties: opts[:properties]
|
|
29
27
|
)
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
require 'legion/extensions/llm'
|
|
4
4
|
require 'legion/extensions/llm/gemini/provider'
|
|
5
5
|
require 'legion/extensions/llm/gemini/version'
|
|
6
|
-
require 'legion/extensions/llm/gemini/
|
|
6
|
+
require 'legion/extensions/llm/gemini/helpers/callable'
|
|
7
|
+
require 'legion/extensions/llm/gemini/actors/discovery'
|
|
7
8
|
|
|
8
9
|
module Legion
|
|
9
10
|
module Extensions
|
|
@@ -76,15 +77,31 @@ module Legion
|
|
|
76
77
|
return unless instances.is_a?(Hash)
|
|
77
78
|
|
|
78
79
|
instances.each do |name, config|
|
|
79
|
-
|
|
80
|
+
add_settings_instance(candidates, name, config)
|
|
81
|
+
end
|
|
82
|
+
end
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
def self.add_settings_instance(candidates, name, config)
|
|
85
|
+
return unless config.is_a?(Hash)
|
|
83
86
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
normalized = normalize_instance_config(config)
|
|
88
|
+
# enabled: false is a skip, not a credential: a disabled instance
|
|
89
|
+
# is never claimed (the discovery pipeline reads this method as
|
|
90
|
+
# the single claimable source).
|
|
91
|
+
return if normalized[:enabled] == false
|
|
92
|
+
return unless normalized[:gemini_api_key]
|
|
93
|
+
return if unresolved_env_reference?(normalized[:gemini_api_key])
|
|
94
|
+
|
|
95
|
+
normalized[:api_key] = normalized[:gemini_api_key]
|
|
96
|
+
normalized[:tier] ||= :cloud
|
|
97
|
+
candidates[name.to_sym] = normalized
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# env:// resolution is the settings host's job (legion-settings
|
|
101
|
+
# Resolver, at boot); a literal placeholder must never be published as
|
|
102
|
+
# a key or fingerprinted.
|
|
103
|
+
def self.unresolved_env_reference?(value)
|
|
104
|
+
value.to_s.start_with?('env://')
|
|
88
105
|
end
|
|
89
106
|
|
|
90
107
|
def self.normalize_instance_config(config)
|
|
@@ -100,6 +117,11 @@ module Legion
|
|
|
100
117
|
|
|
101
118
|
def self.promote_api_key(normalized)
|
|
102
119
|
normalized[:gemini_api_key] ||= normalized.delete(:api_key)
|
|
120
|
+
# The registered default template nests the credential at
|
|
121
|
+
# credentials: { api_key: }; the shared pipeline's auth_token
|
|
122
|
+
# consumes that shape, so the catalog must see it too.
|
|
123
|
+
normalized[:gemini_api_key] ||=
|
|
124
|
+
(normalized[:credentials] || {}).is_a?(Hash) ? normalized.dig(:credentials, :api_key) : nil
|
|
103
125
|
end
|
|
104
126
|
|
|
105
127
|
def self.promote_api_base(normalized)
|
|
@@ -113,7 +135,8 @@ module Legion
|
|
|
113
135
|
end
|
|
114
136
|
|
|
115
137
|
private_class_method :discover_from_env, :discover_from_settings,
|
|
116
|
-
:add_settings_api_key, :add_settings_instances, :
|
|
138
|
+
:add_settings_api_key, :add_settings_instances, :add_settings_instance,
|
|
139
|
+
:unresolved_env_reference?, :normalize_instance_config,
|
|
117
140
|
:symbolize_config_keys, :promote_api_key, :promote_api_base,
|
|
118
141
|
:sanitize_instance_config
|
|
119
142
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lex-llm-gemini
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- LegionIO
|
|
@@ -71,14 +71,14 @@ dependencies:
|
|
|
71
71
|
requirements:
|
|
72
72
|
- - ">="
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 0.
|
|
74
|
+
version: 0.8.0
|
|
75
75
|
type: :runtime
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - ">="
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: 0.
|
|
81
|
+
version: 0.8.0
|
|
82
82
|
description: Gemini provider integration for the LegionIO LLM routing framework.
|
|
83
83
|
email:
|
|
84
84
|
- matthewdiverson@gmail.com
|
|
@@ -95,11 +95,14 @@ files:
|
|
|
95
95
|
- Gemfile
|
|
96
96
|
- LICENSE
|
|
97
97
|
- README.md
|
|
98
|
+
- RULES.md
|
|
98
99
|
- lex-llm-gemini.gemspec
|
|
99
100
|
- lib/legion/extensions/llm/gemini.rb
|
|
100
|
-
- lib/legion/extensions/llm/gemini/actors/
|
|
101
|
+
- lib/legion/extensions/llm/gemini/actors/discovery.rb
|
|
101
102
|
- lib/legion/extensions/llm/gemini/actors/fleet_worker.rb
|
|
103
|
+
- lib/legion/extensions/llm/gemini/helpers/callable.rb
|
|
102
104
|
- lib/legion/extensions/llm/gemini/provider.rb
|
|
105
|
+
- lib/legion/extensions/llm/gemini/runners/discovery.rb
|
|
103
106
|
- lib/legion/extensions/llm/gemini/runners/fleet_worker.rb
|
|
104
107
|
- lib/legion/extensions/llm/gemini/version.rb
|
|
105
108
|
homepage: https://github.com/LegionIO/lex-llm-gemini
|