diff --git a/Gemfile b/Gemfile index 3defc5c1c..acb581e35 100644 --- a/Gemfile +++ b/Gemfile @@ -37,7 +37,7 @@ gem "redcarpet", "~> 3.6.0" gem "image_processing", "~> 1.2" gem "rails_heroicon", "~> 2.2.0" -gem "ruby-openai", "~> 6.3" +gem "ruby-openai", "~> 7.0.1" gem "anthropic", "~> 0.1.0" gem "tiktoken_ruby", "~> 0.0.6" gem "solid_queue", "~> 0.2.1" diff --git a/Gemfile.lock b/Gemfile.lock index b62701457..49109c881 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -277,7 +277,7 @@ GEM language_server-protocol (~> 3.17.0) prism (>= 0.19.0, < 0.20) sorbet-runtime (>= 0.5.5685) - ruby-openai (6.3.1) + ruby-openai (7.0.1) event_stream_parser (>= 0.3.0, < 2.0.0) faraday (>= 1) faraday-multipart (>= 1) @@ -379,7 +379,7 @@ DEPENDENCIES rubocop-minitest rubocop-rails ruby-lsp - ruby-openai (~> 6.3) + ruby-openai (~> 7.0.1) selenium-webdriver solid_queue (~> 0.2.1) sprockets-rails diff --git a/README.md b/README.md index 73c8fe5b0..2ddd3fcb0 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,7 @@ HostedGPT requires these services to be running: - Postgres ([installation instructions](https://www.postgresql.org/download/)) - rbenv ([installation instructions](https://github.com/rbenv/rbenv)) +- ImageMagick (`brew install imagemagick` should work on Mac ) 1. `cd` into your local repository clone 2. `rbenv install` or `asdf install` to install the correct ruby version @@ -117,6 +118,12 @@ HostedGPT requires these services to be running: Every time you pull new changes down, kill `bin/dev` and then re-run it. This will ensure your local app picks up changes to Gemfile and migrations. +### Running tests + +If you're set up with Docker you run `docker compose run base rails test`. Note that the system tests, which use a headless browser, are not able to run in Docker. They will be run automatically for you if you create a Pull Request against the project. + +If you set up the app outside of Docker, then run the usual `bin/rails test` and `bin/rails test:system`. + # Understanding the Docker configuration @@ -155,4 +162,3 @@ v0.5 - Released on 2/14/2024 * Conversations are automatically titled * Sidebar can be closed * AI responses stream in ->>>>>>> upstream-main