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

fix: repair json decoding of moderation response #670

Conversation

mheck136
Copy link
Contributor

PR #662 has broken the json decoding of moderation responses by changing the type of score values from float32 to bool. This commit fixes that problem.

PR sashabaranov#662 has broken the json decoding of moderation responses by changing the
type of score values from float32 to bool. This commit fixes that problem.
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.44%. Comparing base (4103778) to head (1aef293).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #670   +/-   ##
=======================================
  Coverage   98.44%   98.44%           
=======================================
  Files          24       24           
  Lines        1353     1353           
=======================================
  Hits         1332     1332           
  Misses         15       15           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@sashabaranov sashabaranov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏻‍♂️how could've I miss that! Thanks a lot!

@sashabaranov sashabaranov merged commit bb6149f into sashabaranov:master Feb 28, 2024
3 checks passed
@sashabaranov
Copy link
Owner

We need to enable integration tests to prevent that going forward

grulex pushed a commit to grulex/go-openai that referenced this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants