Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryooo committed Nov 15, 2023
1 parent fd87df4 commit 4b33f6f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
18 changes: 9 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ PATH
remote: .
specs:
ghostest (0.1.0)
addressable (~> 2.8)
baran (~> 0.1.8)
colorize (~> 1.1.0)
google-apis-customsearch_v1 (~> 0.15.0)
html2markdown (~> 0.0.3)
i18n (~> 1.14.1)
indifference (~> 0.0.1)
ruby-openai (~> 5.1.0)
tiktoken_ruby (~> 0.0.5)
addressable
baran
colorize
google-apis-customsearch_v1
html2markdown
i18n
indifference
ruby-openai
tiktoken_ruby

GEM
remote: https://rubygems.org/
Expand Down
34 changes: 17 additions & 17 deletions ghostest.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ Gem::Specification.new do |spec|
spec.authors = ["ryooo"]
spec.email = ["ryooo.321@gmail.com"]

spec.summary = "summary"
spec.description = "description"
spec.homepage = "https://github.com/ryooo"
spec.required_ruby_version = ">= 3.2.1"
spec.summary = "Test code generator by llm"
spec.description = "Output test code using LLM agents."
spec.homepage = "https://github.com/ryooo/ghostest"
# spec.required_ruby_version = ">= 3.2.1"

spec.metadata["allowed_push_host"] = "https://rubygems.org"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/ryooo"
spec.metadata["changelog_uri"] = "https://github.com/ryooo"
spec.metadata["source_code_uri"] = "https://github.com/ryooo/ghostest"
spec.metadata["changelog_uri"] = "https://github.com/ryooo/ghostest"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand All @@ -33,16 +33,16 @@ Gem::Specification.new do |spec|
spec.executables = ['ghostest']
spec.require_paths = ["lib"]

spec.add_development_dependency "rspec", "~> 3.12"
spec.add_development_dependency "rubocop", "~> 1.56"
spec.add_dependency 'ruby-openai', '~> 5.1.0'
spec.add_dependency 'html2markdown', '~> 0.0.3'
spec.add_dependency 'addressable', '~> 2.8'
spec.add_dependency 'baran', '~> 0.1.8'
spec.add_dependency 'tiktoken_ruby', '~> 0.0.5'
spec.add_dependency 'google-apis-customsearch_v1', '~> 0.15.0'
spec.add_dependency 'colorize', '~> 1.1.0'
spec.add_dependency 'i18n', '~> 1.14.1'
spec.add_dependency 'indifference', '~> 0.0.1'
spec.add_development_dependency "rspec"
spec.add_development_dependency "rubocop"
spec.add_dependency 'ruby-openai'
spec.add_dependency 'html2markdown'
spec.add_dependency 'addressable'
spec.add_dependency 'baran'
spec.add_dependency 'tiktoken_ruby'
spec.add_dependency 'google-apis-customsearch_v1'
spec.add_dependency 'colorize'
spec.add_dependency 'i18n'
spec.add_dependency 'indifference'

end
2 changes: 1 addition & 1 deletion lib/llm/clients/azure_open_ai.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Llm
module Clients
class AzureOpenAi < Llm::Clients::Base
def initialize(timeout: 300)
def initialize(timeout: 30000)
@client = OpenAI::Client.new(
api_type: :azure,
api_version: ENV.fetch("AZURE_API_VERSION"),
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/llm/clients/azure_open_ai_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
api_version: ENV['AZURE_API_VERSION'],
access_token: ENV['AZURE_OPENAI_API_KEY'],
uri_base: "#{ENV['AZURE_API_BASE']}/openai/deployments/#{ENV['AZURE_DEPLOYMENT_NAME']}",
request_timeout: 300
request_timeout: 30000
)
end

Expand Down

0 comments on commit 4b33f6f

Please sign in to comment.