guardrails
guardrails copied to clipboard
Update OpenAI model and API call
This PR fixes this issue and updates 2 things:
- Instead of
text-davinci-003
, the model is nowgpt-3.5-turbo-instruct
as suggested in this OpenAI forum post. - Instead of
openai.Completion.create
, the api call is nowopenai.completions.create
This is great! Thank you for the update, ready to merge once the notebooks complete their checks
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.
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
updated as part of latest sprint