ask-llm-providers 0.2.0 → 0.2.1

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: 28488f7c89f27d5027c608fc6de5e092ed85e86b0b74eb27a15367837501ee6b
4
- data.tar.gz: 2aec05b22233943dfb7cd3020d87238bc305335466a5119e9959bb1159a70806
3
+ metadata.gz: c3eb8f66386fc8bd48d06aaa3b4557a9df584f9366ab431d38b3861890411401
4
+ data.tar.gz: 9f71aa766c2b545421b56381018cafe2cc0d5b970880898af13a1cd6b8654902
5
5
  SHA512:
6
- metadata.gz: e54d6b853b79fef79a286ad7459bc7eff4b0759eb8e43d915135b9e2645bd9b02b92323aa7205c2341463afcb0192ccbb60cf372b775d9d2fb3d67c9d6172ae5
7
- data.tar.gz: 7e60726296afbfc2e32b0d86a5c2a4f5561dafda272822b3c1262a0b16db34e2c0d31c26a6fb057d62bd1664309540542147a74f694013c0ab5eb11970368293
6
+ metadata.gz: 00cecf99e04b04a253a55a6faf3558fa5498d2094582c07dc903d46cbd247ddd65d1126d16fa0744ba973b71e81ea31ce57ff9cdc49a3373530eb2a151b8bec0
7
+ data.tar.gz: 592e5e26761d59b83afd56ec5300380a64e4126f283a609efdfe06aec86a3d6d5747ff6b8c1f366f1206d5d100af9d3648ceca64c46aee8bdc6756a86026f445
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module LLM
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
@@ -77,13 +77,12 @@ module Ask
77
77
  return config if !config.is_a?(Hash)
78
78
 
79
79
  slug = self.class.slug
80
- env_key = ENV["#{slug.upcase}_API_KEY"]
81
80
  auth_key = Ask::Auth.resolve(:"#{slug}_api_key") rescue nil
82
81
 
83
82
  merged = {
84
83
  api_key: config[:api_key] || config["api_key"] ||
85
84
  config[:"#{slug}_api_key"] || config[:openai_api_key] ||
86
- env_key || auth_key,
85
+ auth_key,
87
86
  base_url: config[:base_url] || config["base_url"] ||
88
87
  ENV["#{slug.upcase}_API_BASE"],
89
88
  organization_id: config[:organization_id] || config["organization_id"],
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 0.1.1
18
+ version: 0.2.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: 0.1.1
25
+ version: 0.2.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: ask-auth
28
28
  requirement: !ruby/object:Gem::Requirement