-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
997d0fa
commit 77540f5
Showing
5 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
require_relative "rubyai/client" | ||
require_relative "rubyai/configuration" | ||
require_relative "rubyai/http" | ||
require_relative "rubyai/version" | ||
|
||
require 'faraday' | ||
|
||
module RubyAI | ||
class Error < StandardError; end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
require_relative 'configuration' | ||
require_relative 'http' | ||
|
||
module RubyAI | ||
class Client | ||
attr_reader :configuration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
require_relative 'configuration' | ||
|
||
module RubyAI | ||
module HTTP | ||
extend self | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,23 @@ Gem::Specification.new do |s| | |
s.name = "rubyai" | ||
s.version = "0.3.1" | ||
s.summary = "A Ruby gem for the OpenAI (GPT-3 and GPT-4) API" | ||
s.description = "RubyAI is a wrapper for the OpenAI API that allows you to interact with GPT-3 and GPT-4 from within Ruby applications. It provides simple methods for integrating language model capabilities into your Ruby projects." | ||
s.homepage = "https://github.com/alexshapalov/rubyai" | ||
s.authors = ["Alex Shapalov"] | ||
s.files = ["lib/rubyai.rb"] | ||
s.email = "[email protected]" # Optional, but often useful | ||
s.license = "MIT" | ||
|
||
s.files = Dir.glob("**/*").select { |f| File.file?(f) } + ["README.md", "LICENSE.txt"] | ||
|
||
s.require_paths = ["."] | ||
s.required_ruby_version = ">= 2.6" | ||
|
||
s.add_dependency "faraday", "~> 2.0" | ||
s.add_development_dependency "rspec", "~> 3.10" | ||
|
||
s.metadata = { | ||
"source_code_uri" => "https://github.com/alexshapalov/rubyai", | ||
"changelog_uri" => "https://github.com/alexshapalov/rubyai/CHANGELOG.md", | ||
"documentation_uri" => "https://github.com/alexshapalov/rubyai#readme" | ||
} | ||
end |