guardrails icon indicating copy to clipboard operation
guardrails copied to clipboard

Update OpenAI model and API call

Open aaravnavani opened this issue 1 year ago • 3 comments

This PR fixes this issue and updates 2 things:

  1. Instead of text-davinci-003, the model is now gpt-3.5-turbo-instruct as suggested in this OpenAI forum post.
  2. Instead of openai.Completion.create, the api call is now openai.completions.create

aaravnavani avatar Jan 24 '24 21:01 aaravnavani

This is great! Thank you for the update, ready to merge once the notebooks complete their checks

zsimjee avatar Jan 24 '24 23:01 zsimjee

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (main@8833c05). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #555   +/-   ##
=======================================
  Coverage        ?   82.91%           
=======================================
  Files           ?       93           
  Lines           ?     5759           
  Branches        ?        0           
=======================================
  Hits            ?     4775           
  Misses          ?      984           
  Partials        ?        0           
Flag Coverage Δ
unittests 82.91% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Jan 24 '24 23:01 codecov-commenter

Hi, thanks for the PR. We're planning on dropping openai v0 support in our next minor release - 0.5.0. That should minimize the changes we need to make on this PR, let's reassess if we need this PR after that change is in

zsimjee avatar Mar 06 '24 18:03 zsimjee

updated as part of latest sprint

zsimjee avatar Jul 10 '24 22:07 zsimjee