Sha256: eda536a81fc7353eea5b43be296b89d8b5bab1498d47caeb09d4d1e47369cd6c

Contents?: true

Size: 399 Bytes

Versions: 15

Compression:

Stored size: 399 Bytes

Contents

require "bundler/setup"
require "ruby-openai-swarm"

def env_debug
  !!ENV['DEBUG']
end

# TODO: refactor it
OpenAI.configure do |config|
  config.access_token = ENV['OPEN_ROUTER_ACCESS_TOKEN']
  config.uri_base = "https://openrouter.ai/api/v1"
end if ENV['OPEN_ROUTER_ACCESS_TOKEN']

OpenAI.configure do |config|
  config.access_token = ENV['OPENAI_ACCESS_TOKEN']
end if ENV['OPENAI_ACCESS_TOKEN']

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ruby-openai-swarm-0.4.0.1 examples/bootstrap.rb
ruby-openai-swarm-0.4.0 examples/bootstrap.rb
ruby-openai-swarm-0.3.1 examples/bootstrap.rb
ruby-openai-swarm-0.3.0.1 examples/bootstrap.rb
ruby-openai-swarm-0.3.0 examples/bootstrap.rb
ruby-openai-swarm-0.2.9 examples/bootstrap.rb
ruby-openai-swarm-0.2.8 examples/bootstrap.rb
ruby-openai-swarm-0.2.7 examples/bootstrap.rb
ruby-openai-swarm-0.2.6 examples/bootstrap.rb
ruby-openai-swarm-0.2.5 examples/bootstrap.rb
ruby-openai-swarm-0.2.4 examples/bootstrap.rb
ruby-openai-swarm-0.2.3 examples/bootstrap.rb
ruby-openai-swarm-0.2.2 examples/bootstrap.rb
ruby-openai-swarm-0.2.1 examples/bootstrap.rb
ruby-openai-swarm-0.2.0 examples/bootstrap.rb