light-openai-lib 0.1.0 → 1.0.0

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: ef80a78645addf631aca9e546f1a94b286c20e455db25c5fd6e11cb02afa40e5
4
- data.tar.gz: abcc70421db1ab139dda1af35927ed6f658adbb770f9074f87c3652c9001f871
3
+ metadata.gz: af108886ae0b9e927efcd823cce8a03c0ecb22efa40cc46d8c5bcb34c1b1abd7
4
+ data.tar.gz: 2cc9c38139706e4c93c694ab88f9d149a8bb8e811da9aeee7774e465430b9b56
5
5
  SHA512:
6
- metadata.gz: b978a4668d93bb222d1facd514a40481e2044c13eba8224cc4cfd325cf733c83a6738921f8c5bf3fe0356efc0b0edc2f166c7971ef432c7218234d202a07c03b
7
- data.tar.gz: a4b7eaad0b060ad4d63aafeecb33a7466576f979208620926bc57ff70bd4bb49d6a405c0e88b851b7cbc969224b3fc33fc10686509259d8920100f70f4bcc11f
6
+ metadata.gz: efec80fb1acdab0552d1775386c95db7721dc6e4c3c147f129b8abe05a43925b15cbad18282c69221a9a5d48eac187c20166737e659b122f7b89fb0d27638960
7
+ data.tar.gz: d298085636ec7376e96d2e3d11ff071fc5c569aced5ae6398a20ede02e7d2b07dfe313c8bf8bfa6eced5da74e7b8ec6ae81aa5e7704fbd57f62e333a6fd5082c
@@ -29,9 +29,14 @@ module Light
29
29
  def chat(model:, messages:, temperature: 1, response_format: nil)
30
30
  payload = {
31
31
  model: model,
32
- temperature: temperature,
33
32
  messages: messages
34
33
  }
34
+
35
+ # GPT-5 models don't support temperature parameter
36
+ unless model.to_s.start_with?('gpt-5')
37
+ payload[:temperature] = temperature
38
+ end
39
+
35
40
  payload[:response_format] = response_format if response_format
36
41
 
37
42
  request(payload: payload, allow_fallback: !response_format.nil?)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Light
4
4
  module OpenAI
5
- VERSION = "0.1.0"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: light-openai-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaetan Juvin
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-11-15 00:00:00.000000000 Z
10
+ date: 2025-12-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: httparty
@@ -125,7 +124,6 @@ metadata:
125
124
  source_code_uri: https://github.com/gaetanjuvin/light-openai-lib
126
125
  changelog_uri: https://github.com/gaetanjuvin/light-openai-lib
127
126
  bug_tracker_uri: https://github.com/gaetanjuvin/light-openai-lib/issues
128
- post_install_message:
129
127
  rdoc_options: []
130
128
  require_paths:
131
129
  - lib
@@ -140,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
138
  - !ruby/object:Gem::Version
141
139
  version: '0'
142
140
  requirements: []
143
- rubygems_version: 3.0.3.1
144
- signing_key:
141
+ rubygems_version: 3.6.2
145
142
  specification_version: 4
146
143
  summary: Minimal OpenAI chat completions client with retry logic
147
144
  test_files: []