luo 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/luo/open_ai.rb +2 -1
- data/lib/luo/projects/env +2 -1
- data/lib/luo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12601aff9972b8acace601e1fd79ed219577d8063379f0c2c8677c6af24a731b
|
4
|
+
data.tar.gz: ae7ccf1bed46c7ff1eeea7328a034b6557674f4fc1c2df5135ead23f4eb5fa70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79bf668ce8fbef426bc81409e159401a9eb301d38dadb9e3b5af21dd913477e47ef873cab930caebdc51e50ef84c2976d1bf43cb8e82db7746ad66df6deaddc0
|
7
|
+
data.tar.gz: c6d75bba67f02b51c4a99e38a9651687534e947cb0bed38b49534691d5c5a1a23e8a7ee80ba328bd579f21a72c12acec825858c986949cdb0fe95577daa97989
|
data/Gemfile.lock
CHANGED
data/lib/luo/open_ai.rb
CHANGED
@@ -8,6 +8,7 @@ module Luo
|
|
8
8
|
setting :retries, default: ENV.fetch('OPENAI_REQUEST_RETRIES', 3).to_i
|
9
9
|
setting :host, default: ENV.fetch('OPENAI_HOST', 'https://api.openai.com')
|
10
10
|
setting :temperature, default: ENV.fetch('OPENAI_TEMPERATURE', 1).to_i
|
11
|
+
setting :model, default: ENV.fetch('OPENAI_CHAT_MODEL', 'gpt-3.5-turbo')
|
11
12
|
|
12
13
|
include HttpClient.init_client
|
13
14
|
|
@@ -53,7 +54,7 @@ module Luo
|
|
53
54
|
messages = messages.to_a
|
54
55
|
end
|
55
56
|
params = PARAMS.call(
|
56
|
-
model:
|
57
|
+
model: config.model,
|
57
58
|
temperature: temperature || config.temperature,
|
58
59
|
messages: messages
|
59
60
|
)
|
data/lib/luo/projects/env
CHANGED
data/lib/luo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MJ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|