rubyai 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubyai.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5256791f12cb280da3330144e2b4d8e76e76e4731a21a66070d07a90c320b4a
|
4
|
+
data.tar.gz: fdaf1f885972be0f5a45c497f2571f0cc93c11042abb1168cfb6fc41d34be46b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d01dbe922f83ca6d3c5b842b93ebb884d231941018f27f43ba2b74913df76ee923d9b0b0027d909c1c9ac76e0e749649d73dd8ea6f19eb740739b1a12a8383eb
|
7
|
+
data.tar.gz: c88a986a14b3d7bd54ae020420748c090f6c2d9b2fa5a0ad8adc4ff50a425f35d0ea22bc0bd62468ab6ba2d1d26f25e5fc7c4b0116a6114ed762e7cfbbde326a
|
data/lib/rubyai.rb
CHANGED
@@ -8,10 +8,10 @@ module RubyAI
|
|
8
8
|
class Client
|
9
9
|
BASE_URL = URI.parse("https://api.openai.com/v1/chat/completions")
|
10
10
|
|
11
|
-
def initialize(api_key,
|
11
|
+
def initialize(api_key, messages, temperature: 0.7, model: "gpt-3.5-turbo")
|
12
12
|
@api_key = api_key
|
13
|
-
@model = model
|
14
13
|
@messages = messages
|
14
|
+
@model = model
|
15
15
|
@temperature = temperature
|
16
16
|
end
|
17
17
|
|
metadata
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Alex
|
7
|
+
- Alex Shapalov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description:
|
14
14
|
email:
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/rubyai.rb
|
20
|
-
homepage: https://
|
20
|
+
homepage: https://github.com/alexshapalov/rubyai
|
21
21
|
licenses:
|
22
22
|
- MIT
|
23
23
|
metadata: {}
|
@@ -39,5 +39,5 @@ requirements: []
|
|
39
39
|
rubygems_version: 3.2.33
|
40
40
|
signing_key:
|
41
41
|
specification_version: 4
|
42
|
-
summary:
|
42
|
+
summary: A Ruby gem for the OpenAI GPT-3 API
|
43
43
|
test_files: []
|