openai_101 1.2.0 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 736a2e322937831de006aa62307bd82605fc2cb77d9e6558ae6899b637ec5c02
4
- data.tar.gz: b6ff2b19719ea9314efc81579c29fe1f157cc26535ed74a0e99b45e9acc81707
3
+ metadata.gz: f679172f1d630c59fcc74f1ddf85910da0a33efd75e57a2e92cd24e3864b58f6
4
+ data.tar.gz: 0ea818befda4557981d7c6b520792a32ad5eeaae77307e1aaf67b6f1c4900d0d
5
5
  SHA512:
6
- metadata.gz: 1140a2e1d2076876595ffa2e79d3195248e027b0599a9937ce2d2ca1b717324c5f1b409bfe2dcdb1b66c5cce167989a4d7c8440715886e22ab2e3e9a3dd2cc84
7
- data.tar.gz: 6d81917562203fa94a619f3f00eac01ba3c4d9a8ecea46a70e6ac761b8439241bebaedd776ce0dd262ed0f2f642e8499c1d920690549890eb2f03c59440b4175
6
+ metadata.gz: e763bfda0f34f73fc163a7693532be203c991e7378fa1fe0d0d211993f8d77d25ac5452c232044eb522353c5a1149352163eb2b316c4bd4cd6dc60e48fe4a020
7
+ data.tar.gz: d16eae6deedf60cc0e66ba26e3626bc868c8a3538de3faf805f7b46362347b96bb4c6c74f5fff3f9646db24e6ecb42de8c127f8e207af5dacf46fe34bbf8ea40
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## [1.2.1](https://github.com/appydave/openai_101/compare/v1.2.0...v1.2.1) (2024-06-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * namespace issues ([e949689](https://github.com/appydave/openai_101/commit/e949689d69f49bf0874e31174acef977816aa43c))
7
+ * when tool not enabled ([fbfd0ad](https://github.com/appydave/openai_101/commit/fbfd0ad478c05e416cc72163a3300efa89acdd86))
8
+
9
+ # [1.2.0](https://github.com/appydave/openai_101/compare/v1.1.0...v1.2.0) (2024-06-19)
10
+
11
+
12
+ ### Features
13
+
14
+ * moved repo to appydave organization ([b37548c](https://github.com/appydave/openai_101/commit/b37548ca75e2e25b8f3c08cf22801ef1f6d1d631))
15
+
1
16
  # [0.2.0](https://github.com/appydave/openai_101/compare/v0.1.0...v0.2.0) (2024-06-19)
2
17
 
3
18
 
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'dotenv'
4
+ # Dotenv.load(".env.#{ENV['APP_ENV']}") # Loads environment-specific dotenv file.
5
+ Dotenv.load('.env')
6
+
7
+ OpenAI.configure do |config|
8
+ tools_enabled = ENV.fetch('TOOLS_ENABLED', 'false')
9
+
10
+ if tools_enabled == 'true'
11
+ puts 'OpenAI Tools are enabled'
12
+ config.access_token = ENV.fetch('OPENAI_ACCESS_TOKEN')
13
+ config.organization_id = ENV.fetch('OPENAI_ORGANIZATION_ID', nil)
14
+ end
15
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Openai101
4
+ # Testing the Sample class
5
+ class Sample
6
+ def self.hello
7
+ 'Hello, World!'
8
+ end
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openai101
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.2'
5
5
  end
data/lib/openai_101.rb CHANGED
@@ -1,6 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'openai_101/version'
3
+ require 'clipboard'
4
+ require 'openai'
5
+
6
+ require 'csv'
7
+ require 'json'
8
+ require 'table_print'
9
+ require 'pry'
10
+
11
+ require 'openai101/version'
12
+ require 'openai101/sample'
4
13
 
5
14
  module Openai101
6
15
  # raise Openai101::Error, 'Sample message'
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "openai_101",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "openai_101",
9
- "version": "1.2.0",
9
+ "version": "1.2.2",
10
10
  "devDependencies": {
11
11
  "@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
12
12
  "@semantic-release/changelog": "^6.0.3",
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openai_101",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "OpenAI 101 working through the API endpoints",
5
5
  "scripts": {
6
6
  "release": "semantic-release"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai_101
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Cruwys
@@ -10,6 +10,34 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: clipboard
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dotenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: k_log
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +52,20 @@ dependencies:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ruby-openai
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '7'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '7'
27
69
  description: " OpenAI 101 working through the API endpoints\n"
28
70
  email:
29
71
  - david@ideasmen.com.au
@@ -47,8 +89,10 @@ files:
47
89
  - Rakefile
48
90
  - bin/console
49
91
  - bin/setup
92
+ - lib/openai101/config/openai.rb
93
+ - lib/openai101/sample.rb
94
+ - lib/openai101/version.rb
50
95
  - lib/openai_101.rb
51
- - lib/openai_101/version.rb
52
96
  - package-lock.json
53
97
  - package.json
54
98
  - sig/openai_101.rbs