openai_chatgpt 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/openai_chatgpt/client.rb +1 -1
- data/lib/openai_chatgpt/usage.rb +1 -1
- data/lib/openai_chatgpt/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b4916d348b6d695867cafa91caaa4d44d062a717d0bd3c39ca0e1682c5a9d01
|
4
|
+
data.tar.gz: 187b7cd0b6c0efa240d61a15ae2513468664bbe424e1056b0f5faddeac728fd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f52ca4c10ac0c671cd171f718e9510fd21a90964fdb646b72e52aec38c956bd5db2c7916afc0351e725200c007965b54cb4795746f38773d709aca91146618
|
7
|
+
data.tar.gz: 27fe48ed304358e2bcd1dd220df1c64390c0d97d199fcbb481bdffc1a26dedc114c08ab8a87955335836a8cd6f3995c39b61aafc3e7595dabf4ac1abbfaa57b0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [0.1.2] - 2022=04-07
|
2
|
+
|
3
|
+
- increased `timeout` option to faraday connection by [@mennovergeer](https://github.com/mennovergeer)
|
4
|
+
|
5
|
+
## [0.1.1] - 2022-03-24
|
6
|
+
|
7
|
+
- added `timeout` option to faraday connection by [@mennovergeer](https://github.com/mennovergeer)
|
8
|
+
|
1
9
|
## [0.1.0] - 2022-03-06
|
2
10
|
|
3
11
|
- Initial release
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# OpenaiChatgpt
|
2
2
|
|
3
|
-
OpenAI ChatGPT API is a light-weight Ruby wrapper for the Rubyists. It gives nice struct objects for
|
3
|
+
OpenAI ChatGPT API is a light-weight Ruby wrapper for the Rubyists. It gives nice struct objects for completions of the chatgpt, even the raw responses are returned in nice open struct objects. It uses Faraday for HTTP requests.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -97,7 +97,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
97
97
|
|
98
98
|
## Contributing
|
99
99
|
|
100
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
100
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sulmanweb/openai_chatgpt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/sulmanweb/openai_chatgpt/blob/main/CODE_OF_CONDUCT.md).
|
101
101
|
|
102
102
|
## License
|
103
103
|
|
@@ -105,4 +105,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
105
105
|
|
106
106
|
## Code of Conduct
|
107
107
|
|
108
|
-
Everyone interacting in the OpenaiChatgpt project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
108
|
+
Everyone interacting in the OpenaiChatgpt project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/sulmanweb/openai_chatgpt/blob/main/CODE_OF_CONDUCT.md).
|
@@ -100,7 +100,7 @@ module OpenaiChatgpt
|
|
100
100
|
@connection ||= Faraday.new(BASE_URL) do |conn|
|
101
101
|
conn.headers["Authorization"] = "Bearer #{@api_key}"
|
102
102
|
conn.headers["Content-Type"] = "application/json"
|
103
|
-
|
103
|
+
conn.options.timeout = 1200 # Increase the timeout limit to 1200 seconds
|
104
104
|
conn.response :json, content_type: "application/json"
|
105
105
|
conn.adapter adapter, @stubs
|
106
106
|
end
|
data/lib/openai_chatgpt/usage.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openai_chatgpt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sulman Baig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.4.
|
89
|
+
rubygems_version: 3.4.8
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: OpenAI ChatGPT API is a light-weight Ruby wrapper for the Rubyists. gpt-3.5-turbo,
|