Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated OpenAi gem 7.0.1 #343

Merged
merged 3 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading