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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -0
- data/lib/legion/extensions/llm/gemini/provider.rb +3 -2
- data/lib/legion/extensions/llm/gemini/version.rb +1 -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: 38629e200b20ead1e46cef9d869271abfb744e9696024a6a4f4b25485044e8f6
|
|
4
|
+
data.tar.gz: c9b389261ef415cb1d45115918cf27b98bb96346491cf47bf828b567084780d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)
|