Skip to content

Commit

Permalink
Updated OpenAi gem 7.0.1 (#343)
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Schacht <[email protected]>
  • Loading branch information
Rmpanga and krschacht authored May 9, 2024
1 parent 45f8317 commit e4e19f4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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

0 comments on commit e4e19f4

Please sign in to comment.