lex-llm-gemini 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7673575bf56bb514a64f48de727512748a7d0ea39508dc9cf03fc1a353176aed
4
- data.tar.gz: ca88287ed62989ee44fc732c16a234aeb9df83dfa3e6bebf87b72369ea3cf471
3
+ metadata.gz: 38629e200b20ead1e46cef9d869271abfb744e9696024a6a4f4b25485044e8f6
4
+ data.tar.gz: c9b389261ef415cb1d45115918cf27b98bb96346491cf47bf828b567084780d8
5
5
  SHA512:
6
- metadata.gz: 4ec296851f8ef6301caf79f593d3aae1b9ae606ef10db99c10a619247e11a67e6991a1e570a41f87c1a522abbf68f69453013d9401edf9b6c9d1acb3580f51d9
7
- data.tar.gz: 3d3163c19725b922247602d945913ce53d1c49ff02d97c020b665fa8cfd902d8abe5042282e809ae888ce60922ccdbcfd1a8d6e7aa3b6661a2856742aefba7bf
6
+ metadata.gz: af56bb55688b7b51508ad3d3b7733a352e7e7808b7fc27e126ddfe1b437203950cc79cf9f82a72b0607c1fe8c50cb0420213c83006f8dfded3a43f873506425c
7
+ data.tar.gz: 5b0be464fb0c6865a6b7df8d7edcb95e0e248db41ca2e37276531e4492cfcf08dc539f56fc81c4169a2dc9d9d8f289b86a112f941575aa5091c0110ff2f6a1ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4 - 2026-04-28
4
+
5
+ - Read Gemini `supportedGenerationMethods` from discovered model metadata when mapping chat, streaming, and embedding capabilities.
6
+ - Cover embedding-only model discovery metadata for routing.
7
+
3
8
  ## 0.1.3 - 2026-04-28
4
9
 
5
10
  - Remove the leftover compatibility entrypoint outside the Legion namespace.
data/README.md CHANGED
@@ -13,6 +13,7 @@ Load it with `require 'legion/extensions/llm/gemini'`.
13
13
  - streaming chat support through `POST /v1beta/{model=models/*}:streamGenerateContent?alt=sse`
14
14
  - model discovery through `GET /v1beta/models`
15
15
  - embeddings through `POST /v1beta/{model=models/*}:embedContent`
16
+ - normalized chat, streaming, vision, function calling, and embedding capability mapping from `supportedGenerationMethods`
16
17
  - shared fleet/default settings via `Legion::Extensions::Llm.provider_settings`
17
18
 
18
19
  ## Defaults
@@ -22,7 +22,7 @@ module Legion
22
22
  def chat?(model) = supported?(model, 'generateContent')
23
23
  def streaming?(model) = supported?(model, 'streamGenerateContent')
24
24
  def embeddings?(model) = supported?(model, 'embedContent')
25
- def vision?(model) = model_id(model).match?(/gemini|flash|pro/)
25
+ def vision?(model) = chat?(model) && model_id(model).match?(/gemini|flash|pro/)
26
26
  def functions?(model) = chat?(model)
27
27
 
28
28
  def critical_capabilities_for(model)
@@ -44,7 +44,8 @@ module Legion
44
44
 
45
45
  def generation_methods(model)
46
46
  metadata = metadata_for(model)
47
- Array(metadata[:supported_generation_methods] || metadata['supported_generation_methods'])
47
+ Array(metadata[:supported_generation_methods] || metadata['supported_generation_methods'] ||
48
+ metadata['supportedGenerationMethods'])
48
49
  end
49
50
 
50
51
  def model_id(model)
@@ -4,7 +4,7 @@ module Legion
4
4
  module Extensions
5
5
  module Llm
6
6
  module Gemini
7
- VERSION = '0.1.3'
7
+ VERSION = '0.1.4'
8
8
  end
9
9
  end
10
10
  end
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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - LegionIO