examples/basic/context_variables.rb in ruby-openai-swarm-0.1.0 vs examples/basic/context_variables.rb in ruby-openai-swarm-0.2.0

- old
+ new

@@ -1,13 +1,6 @@ +require_relative "../bootstrap" # link: https://github.com/openai/swarm/blob/main/examples/basic/context_variables.py - -# OpenAI.configure do |config| -# config.access_token = ENV['OPENAI_ACCESS_TOKEN'] -# end -OpenAI.configure do |config| - config.access_token = ENV['OPEN_ROUTER_ACCESS_TOKEN'] - config.uri_base = "https://openrouter.ai/api/v1" -end client = OpenAISwarm.new def instructions(context_variables) name = context_variables.fetch(:name, :User)