maintenance: update default engine #16
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Fresh install today and encountered the following error while building out a straight CLI wrapper:
Solution
Updates default model per openai docs from
text-davinci-002
👉gpt-4o-mini
with a simple find & replaceChecks
rake test
: 19 run / 46 assertions / 0 failures / 0 skipsrubocop
: 16 inspected / 0 offensesyard doc
: no changeRubocop Cleanup
main
contains 13 offenses which are resolved via:client.rb#request_streaming
- reduce complexitychunk.split("\n").filter { |c| c.start_with?('data:') }.each do |line|
request_options
(Happy to rm, lmk. May be unneeded in hindsight)test/test_helper.rb
- multiple violationsmock_response_body
method with uniform signatureAdditional Changes
bundle
generates diff ingemfile.lock
Observed on both main && feature branchesgem yard
README.md
includes a reference to docs withbundle exec yard doc
but it is not included in the bundlegem 'yard'
added to development, enabling above command.DS_Store
.gitignore
~/.gitignore_global
to cover things like this in the future