openai_chatgpt 0.1.1 → 0.1.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/openai_chatgpt/client.rb +1 -1
- data/lib/openai_chatgpt/version.rb +1 -1
- metadata +2 -3
- data/openai_chatgpt.gemspec +0 -41
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
data/Gemfile.lock
CHANGED
|
@@ -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
|
-
conn.options.timeout =
|
|
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
|
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
|
|
@@ -62,7 +62,6 @@ files:
|
|
|
62
62
|
- lib/openai_chatgpt/response.rb
|
|
63
63
|
- lib/openai_chatgpt/usage.rb
|
|
64
64
|
- lib/openai_chatgpt/version.rb
|
|
65
|
-
- openai_chatgpt.gemspec
|
|
66
65
|
- sig/openai_chatgpt.rbs
|
|
67
66
|
homepage: https://github.com/sulmanweb/openai_chatgpt
|
|
68
67
|
licenses:
|
data/openai_chatgpt.gemspec
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require_relative "lib/openai_chatgpt/version"
|
|
4
|
-
|
|
5
|
-
# rubocop:disable Metrics/BlockLength
|
|
6
|
-
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name = "openai_chatgpt"
|
|
8
|
-
spec.version = OpenaiChatgpt::VERSION
|
|
9
|
-
spec.authors = ["Sulman Baig"]
|
|
10
|
-
spec.email = ["sulman@hey.com"]
|
|
11
|
-
|
|
12
|
-
spec.summary = "OpenAI ChatGPT API is a light-weight Ruby wrapper for the Rubyists. gpt-3.5-turbo, gpt-3.5-turbo-0301"
|
|
13
|
-
spec.description = "OpenAI ChatGPT API is a light-weight Ruby wrapper for the Rubyists. gpt-3.5-turbo,\
|
|
14
|
-
gpt-3.5-turbo-0301. You can use this gem to generate text using OpenAI's ChatGPT chat responses API."
|
|
15
|
-
spec.homepage = "https://github.com/sulmanweb/openai_chatgpt"
|
|
16
|
-
spec.license = "MIT"
|
|
17
|
-
spec.required_ruby_version = ">= 2.6"
|
|
18
|
-
|
|
19
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
|
20
|
-
|
|
21
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
22
|
-
spec.metadata["source_code_uri"] = "https://github.com/sulmanweb/openai_chatgpt"
|
|
23
|
-
spec.metadata["changelog_uri"] = "https://github.com/sulmanweb/openai_chatgpt/blob/main/CHANGELOG.md"
|
|
24
|
-
|
|
25
|
-
# Specify which files should be added to the gem when it is released.
|
|
26
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
27
|
-
spec.files = Dir.chdir(__dir__) do
|
|
28
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
|
29
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
spec.bindir = "exe"
|
|
33
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
34
|
-
spec.require_paths = ["lib"]
|
|
35
|
-
spec.extra_rdoc_files = %w[README.md]
|
|
36
|
-
|
|
37
|
-
spec.add_dependency("faraday", "~> 2.5")
|
|
38
|
-
spec.add_development_dependency("rubocop", "~> 1.35")
|
|
39
|
-
spec.metadata["rubygems_mfa_required"] = "true"
|
|
40
|
-
end
|
|
41
|
-
# rubocop:enable Metrics/BlockLength
|