lex-llm-mlx 0.3.6 → 0.3.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/CHANGELOG.md +7 -0
- data/lib/legion/extensions/llm/mlx/provider.rb +6 -4
- data/lib/legion/extensions/llm/mlx/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: ddbc30a66deeb8a43b0801bdc7c63e3388ef12a6be22ef1ecf390c588af89be2
|
|
4
|
+
data.tar.gz: eaecfe996293eec9607012f9e6aaa66af047021502d62eeb2cef34b309816bd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0218f8982051c9a54b16c36442545052b36b88670e01548487bcab93572c46f012b447c5936f267e9d5b0b54c321dd30c24a3aef2395fbd08e8f501cc9304900'
|
|
7
|
+
data.tar.gz: 2763d809a2806f44fed3fb282c4679bfbb1c9b1c8d192fa41c90ac24d55cdd88fc435a8ce3e91822c9e79c595e94518eb49040ec2210e2beb4e070769e744d98
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.7 - 2026-05-21
|
|
4
|
+
|
|
5
|
+
- Add `default_transport`/`default_tier` class declarations
|
|
6
|
+
- api_base reads from settings[:endpoint] fallback
|
|
7
|
+
- Identity headers included via base provider
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
## 0.3.6 - 2026-05-08
|
|
4
11
|
|
|
5
12
|
- Accept keyword arguments in `list_models` to match the base provider contract called by `discover_offerings`.
|
|
@@ -15,6 +15,8 @@ module Legion
|
|
|
15
15
|
|
|
16
16
|
def slug = 'mlx'
|
|
17
17
|
def local? = true
|
|
18
|
+
def default_transport = :http
|
|
19
|
+
def default_tier = :local
|
|
18
20
|
def configuration_options = %i[mlx_api_base mlx_api_key]
|
|
19
21
|
def configuration_requirements = []
|
|
20
22
|
def capabilities = Capabilities
|
|
@@ -53,14 +55,14 @@ module Legion
|
|
|
53
55
|
end
|
|
54
56
|
|
|
55
57
|
def api_base
|
|
56
|
-
normalize_url(config.mlx_api_base || 'localhost:8000')
|
|
58
|
+
normalize_url(config.mlx_api_base || settings[:endpoint] || 'http://localhost:8000')
|
|
57
59
|
end
|
|
58
60
|
|
|
59
61
|
def headers
|
|
62
|
+
hdrs = identity_headers
|
|
60
63
|
token = config.mlx_api_key
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{ 'Authorization' => "Bearer #{token}" }
|
|
64
|
+
hdrs['Authorization'] = "Bearer #{token}" unless token.nil? || token.to_s.empty?
|
|
65
|
+
hdrs
|
|
64
66
|
end
|
|
65
67
|
|
|
66
68
|
def health_url = '/health'
|