ask-llm-providers 0.8.3 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d5b33d4106b1ff85f594f7651b95cfb69bde7f1aaa35e7050fd9b102014d52f
4
- data.tar.gz: 25740a685dfff7b3385596483a4134733b56868492687eb220d02fbcbeae58fe
3
+ metadata.gz: ab26881afbb5870a65101d2118505e38bf9193e60d929cc40ec7be4bc6808ca8
4
+ data.tar.gz: b403d02544b5dc14d31c148f4a43bc78137214ce88045351dba030dc0d8707c4
5
5
  SHA512:
6
- metadata.gz: b6241b99f318212baca48ad6be2956c82e56ea403773e0b998777019f1df23387642d08b0d4fb1428d649569321bde1989bd05041b0981e08d78334897e9b6fc
7
- data.tar.gz: 66257980209fd5ca113cedf3c8ad30f79e16b1f6e3db1af4f3527aec77527976447b1702ee21fd525322a355d7af36bbae9876c29e9f9ae1ec95f351ddfe1bf9
6
+ metadata.gz: 314a2930f8b7cc6940b17ff51c3c7fb834829b305bd275e99787408981ebbcfa9ceeb5b05984af8876131040c695bfa02dc5d7bfe3b8ffb4d97a62cfcec1cc54
7
+ data.tar.gz: 0e251210f83fd64485cc29350232abcdda64dde3b73be765301f69ddfc5251dc32043d3e1c483c11691e8ce53662a8598e7554ec699c37b7ac9c896378bd7327
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.8.4] — 2026-07-18
2
+
3
+ ### Fixed
4
+
5
+ - **`normalize_config` (OpenAI) and `normalize_compat_config` (OpenAICompatible) — Config object handling** — `Chat#provider_config` creates an `Ask::LLM::Config` object, but both methods previously bailed out with `return config unless config.is_a?(Hash)`, allowing the Config object to pass through without API key resolution. Now they call `config.to_h` when the object responds to it before the Hash guard, ensuring env vars like `OPENCODE_API_KEY` are properly resolved for all OpenAI-compatible providers. Fixes auth for all 20+ OpenAI-compatible providers when config arrives as a Config object.
6
+
1
7
  ## [0.8.1] — 2026-07-17
2
8
 
3
9
  ### Added
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module LLM
5
- VERSION = "0.8.3"
5
+ VERSION = "0.8.4"
6
6
  end
7
7
  end
@@ -166,6 +166,7 @@ module Ask
166
166
  end
167
167
 
168
168
  def normalize_config(config)
169
+ config = config.to_h if config.respond_to?(:to_h)
169
170
  return config if !config.is_a?(Hash)
170
171
 
171
172
  slug = self.class.slug
@@ -71,6 +71,7 @@ module Ask
71
71
  private
72
72
 
73
73
  def normalize_compat_config(config)
74
+ config = config.to_h if config.respond_to?(:to_h)
74
75
  return config unless config.is_a?(Hash)
75
76
 
76
77
  slug = self.class.slug
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-llm-providers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto