lex-llm-vllm 0.4.8 → 0.4.9
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/.github/workflows/ci.yml +6 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +3 -3
- data/README.md +6 -1
- data/lex-llm-vllm.gemspec +1 -1
- data/lib/legion/extensions/llm/vllm/translator.rb +3 -3
- data/lib/legion/extensions/llm/vllm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fcfa5e236205dab50f875419a10bd7478faf64301b21b3cd8aa50d3756191dd6
|
|
4
|
+
data.tar.gz: ebe1ea1bf133081616f91030386cdf620c6187b7c995e90cbfe91b62d49c6dd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85b48d5f15eee50716f65b1ea1fe75d9922a87a495bc7428f6add79a7aae453e30a4866519f23584185cdebccbf2dea00ed65e3ea51657a9f2e84c8815e7c0ac
|
|
7
|
+
data.tar.gz: b2e90582c6161c163641688376933cd26a7b4dd2ae16490efe1d340ceab92484c3b7617589922bdc9ad12f324b7e8cb76d0ef813ffa9e0c1c0cefeaa52ddf596
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -7,12 +7,18 @@ on:
|
|
|
7
7
|
jobs:
|
|
8
8
|
ci:
|
|
9
9
|
uses: LegionIO/.github/.github/workflows/ci.yml@main
|
|
10
|
+
with:
|
|
11
|
+
companion-gems: >-
|
|
12
|
+
{"lex-llm":{"repository":"LegionIO/lex-llm","ref":"eedf5172abe0bfda26501967c3f3f38b7c180095"}}
|
|
10
13
|
|
|
11
14
|
excluded-files:
|
|
12
15
|
uses: LegionIO/.github/.github/workflows/excluded-files.yml@main
|
|
13
16
|
|
|
14
17
|
security:
|
|
15
18
|
uses: LegionIO/.github/.github/workflows/security-scan.yml@main
|
|
19
|
+
with:
|
|
20
|
+
companion-gems: >-
|
|
21
|
+
{"lex-llm":{"repository":"LegionIO/lex-llm","ref":"eedf5172abe0bfda26501967c3f3f38b7c180095"}}
|
|
16
22
|
|
|
17
23
|
version-changelog:
|
|
18
24
|
uses: LegionIO/.github/.github/workflows/version-changelog.yml@main
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.9] - 2026-10-31
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Preserve image detail and ordered base64/URL content through the actual chat and streaming callable after canonical JSON rehydration.
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- Require `lex-llm >= 0.8.6` for canonical image source normalization.
|
|
10
|
+
|
|
3
11
|
## [0.4.8] - 2026-08-25
|
|
4
12
|
|
|
5
13
|
### Changed
|
data/Gemfile
CHANGED
|
@@ -4,10 +4,10 @@ source 'https://rubygems.org'
|
|
|
4
4
|
|
|
5
5
|
gemspec
|
|
6
6
|
|
|
7
|
-
#
|
|
8
|
-
# 0.8.0 conformance work resolves against the contract cut during development.
|
|
7
|
+
# Use immutable CI companions or adjacent development checkouts when available.
|
|
9
8
|
group :test do
|
|
10
|
-
lex_llm_path = File.expand_path('
|
|
9
|
+
lex_llm_path = File.expand_path('.ci-dependencies/lex-llm', __dir__)
|
|
10
|
+
lex_llm_path = File.expand_path('../lex-llm', __dir__) unless Dir.exist?(lex_llm_path)
|
|
11
11
|
gem 'lex-llm', path: lex_llm_path if Dir.exist?(lex_llm_path)
|
|
12
12
|
end
|
|
13
13
|
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This gem provides a complete vLLM adapter for the LegionIO LLM routing layer. It
|
|
|
6
6
|
|
|
7
7
|
**Namespace:** `Legion::Extensions::Llm::Vllm`
|
|
8
8
|
**Provider slug:** `:vllm`
|
|
9
|
-
**Dependency:** `lex-llm >= 0.
|
|
9
|
+
**Dependency:** `lex-llm >= 0.8.6`
|
|
10
10
|
|
|
11
11
|
Load with:
|
|
12
12
|
|
|
@@ -14,6 +14,11 @@ Load with:
|
|
|
14
14
|
require 'legion/extensions/llm/vllm'
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
Multimodal calls consume canonical base64/URL image blocks. The provider renders
|
|
18
|
+
ordered OpenAI `image_url` parts and preserves `detail` through chat, streaming and
|
|
19
|
+
fleet JSON rehydration. Anthropic-specific cache-control fields are not emitted on
|
|
20
|
+
the vLLM wire.
|
|
21
|
+
|
|
17
22
|
---
|
|
18
23
|
|
|
19
24
|
## Architecture at a Glance
|
data/lex-llm-vllm.gemspec
CHANGED
|
@@ -32,5 +32,5 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
# contract), the legacy Llm::Message/Chunk/ToolCall/ModelOffering/
|
|
33
33
|
# ScopedRefresher surface is deleted, and the per-gem writer publishes
|
|
34
34
|
# OfferingDrafts through the SSOT Registry.
|
|
35
|
-
spec.add_dependency 'lex-llm', '>= 0.8.
|
|
35
|
+
spec.add_dependency 'lex-llm', '>= 0.8.6'
|
|
36
36
|
end
|
|
@@ -78,14 +78,14 @@ module Legion
|
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
def build_image_block(block)
|
|
81
|
-
return {} unless block.data || block.source_type
|
|
82
|
-
|
|
83
81
|
url = if block.source_type == :base64 && block.media_type
|
|
84
82
|
"data:#{block.media_type};base64,#{block.data}"
|
|
85
83
|
else
|
|
86
84
|
block.data
|
|
87
85
|
end
|
|
88
|
-
|
|
86
|
+
image_url = { url: url }
|
|
87
|
+
image_url[:detail] = block.detail if block.detail
|
|
88
|
+
{ type: 'image_url', image_url: image_url }
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lex-llm-vllm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.9
|
|
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.8.
|
|
74
|
+
version: 0.8.6
|
|
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.8.
|
|
81
|
+
version: 0.8.6
|
|
82
82
|
description: vLLM provider integration for the LegionIO LLM routing framework.
|
|
83
83
|
email:
|
|
84
84
|
- matthewdiverson@gmail.com
|