Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

undefined method `openai_access_key=' for an instance of Eyeloupe::Configuration #6

@brandonzylstra

Description

@brandonzylstra

When trying to start up Rails with almost the same configuration as the README

Eyeloupe.configure do |config|
  config.excluded_paths = %w[assets favicon.ico manifest.json]
  config.capture = Rails.env.development?
  config.openai_access_key = ENV['OPENAI_EYELOUPE_KEY']
  config.openai_model = "gpt-4"
  config.database = 'eyeloupe'
end

I get the following error:

/Users/brandon/Code/Rails/portal/config/initializers/eyeloupe.rb:6:in `block in <top (required)>': undefined method `openai_access_key=' for an instance of Eyeloupe::Configuration (NoMethodError)

The same thing happens for the next line:

/Users/brandon/Code/Rails/portal/config/initializers/eyeloupe.rb:6:in `block in <top (required)>': undefined method `openai_model=' for an instance of Eyeloupe::Configuration (NoMethodError)

And for the last line:

/Users/brandon/Code/Rails/portal/config/initializers/eyeloupe.rb:7:in `block in <top (required)>': undefined method `database=' for an instance of Eyeloupe::Configuration (NoMethodError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions