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: 76e76ee4edefeb764f3d1829a900e1bf60bf9ccc598532feb0d6033680af329f
4
- data.tar.gz: 778667f3720744c2b5ea38e96d52db29d22c4228f4247a55e9976fd2e1b85612
3
+ metadata.gz: 30c68d11d7549c672c912006d7ca6e843fbd976cd7e5e1845db580b9f86543f8
4
+ data.tar.gz: 5451587d09659bd54f9f6a5d52c165f1eee58a66a2667797a65a7f2f84c9fbce
5
5
  SHA512:
6
- metadata.gz: f1facb1bad185f1b7d2429213869f637598802d078ea1bf453c670de3ff5426f56e763d0102e3b15ce78f4afb6bd36788bf7269918416191b0daa483e5ae6ca4
7
- data.tar.gz: aa1a7c88250da3f1d676ef92fbb0f46522d44994e54d49707daad0ec38eb0e940341ea4f9b0661af9d117771b4fe5d3e4156a3c29d21a11b74446dd9fdbd9570
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 ? '/models' : ''
293
+ prefix = surface == MODEL_INFERENCE_SURFACE ? 'models/' : ''
290
294
  suffix = surface == MODEL_INFERENCE_SURFACE ? "?api-version=#{api_version}" : ''
291
- "#{prefix}/#{path}#{suffix}"
295
+ "#{prefix}#{path}#{suffix}"
292
296
  end
293
297
 
294
298
  def bearer_header
@@ -4,7 +4,7 @@ module Legion
4
4
  module Extensions
5
5
  module Llm
6
6
  module AzureFoundry
7
- VERSION = '0.2.13'
7
+ VERSION = '0.2.14'
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-azure-foundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - LegionIO