lex-llm-azure-foundry 0.2.13 → 0.2.14
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30c68d11d7549c672c912006d7ca6e843fbd976cd7e5e1845db580b9f86543f8
|
|
4
|
+
data.tar.gz: 5451587d09659bd54f9f6a5d52c165f1eee58a66a2667797a65a7f2f84c9fbce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a9509a27ea507bfa9cf0a68564cb56cafad2ca30fe8f158a2a1a33dcdb701dc3b25289ce0707a524c9488f54f12421005702b31b3bf6d2b35eb869bc79f77e8
|
|
7
|
+
data.tar.gz: 0dd91d0a237fa15c9a6fcb32f8c77d81c15274e97fc525d08a254787e91f410449b01448d43e677f9f785343738f33e0de6a0bb07076af45dc7c2ccebbf67cf6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.14] - 2026-07-03
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Emit relative request paths from `path_for` (no leading slash). `Connection` builds Faraday with `api_base` as the base URL; on the `openai_v1` surface that base carries the `/openai/v1` path, and a leading-slash path was treated as absolute and dropped it — 404ing live discovery (empty offerings) and chat. Paths are now relative so the base path survives on both surfaces.
|
|
7
|
+
- Resolve `models_url`/`health_url` per surface: `models` on `openai_v1`, `models/info` on `model_inference`. Previously always `info`, which 404s on the `openai_v1` surface.
|
|
8
|
+
|
|
3
9
|
## [0.2.13] - 2026-06-20
|
|
4
10
|
|
|
5
11
|
### Fixed
|
|
@@ -143,7 +143,7 @@ module Legion
|
|
|
143
143
|
def completion_url = path_for('chat/completions')
|
|
144
144
|
def chat_url = completion_url
|
|
145
145
|
def stream_url = completion_url
|
|
146
|
-
def models_url = path_for('info')
|
|
146
|
+
def models_url = surface == MODEL_INFERENCE_SURFACE ? path_for('info') : path_for('models')
|
|
147
147
|
def embedding_url(**) = path_for('embeddings')
|
|
148
148
|
def health_url = models_url
|
|
149
149
|
|
|
@@ -285,10 +285,14 @@ module Legion
|
|
|
285
285
|
config.azure_foundry_api_version || DEFAULT_API_VERSION
|
|
286
286
|
end
|
|
287
287
|
|
|
288
|
+
# Paths MUST be relative (no leading slash). Faraday builds the
|
|
289
|
+
# connection with api_base as the base URL — on the openai_v1 surface
|
|
290
|
+
# that base carries the /openai/v1 path, and a leading-slash path would
|
|
291
|
+
# be treated as absolute and drop it, 404ing discovery and chat.
|
|
288
292
|
def path_for(path)
|
|
289
|
-
prefix = surface == MODEL_INFERENCE_SURFACE ? '/
|
|
293
|
+
prefix = surface == MODEL_INFERENCE_SURFACE ? 'models/' : ''
|
|
290
294
|
suffix = surface == MODEL_INFERENCE_SURFACE ? "?api-version=#{api_version}" : ''
|
|
291
|
-
"#{prefix}
|
|
295
|
+
"#{prefix}#{path}#{suffix}"
|
|
292
296
|
end
|
|
293
297
|
|
|
294
298
|
def bearer_header
|