-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 integration test #762
Fix integration test #762
Conversation
3583067
to
2186686
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #762 +/- ##
==========================================
+ Coverage 98.46% 98.68% +0.22%
==========================================
Files 24 24
Lines 1364 1140 -224
==========================================
- Hits 1343 1125 -218
+ Misses 15 9 -6
Partials 6 6 ☔ View full report in Codecov by Sentry. |
moved completion stream testing to seperate function added NoErrorF fixes nil pointer reference on stream object
2186686
to
7823611
Compare
@@ -16,7 +16,7 @@ var ErrVectorLengthMismatch = errors.New("vector length mismatch") | |||
type EmbeddingModel string | |||
|
|||
const ( | |||
// Deprecated: The following block will be shut down on January 04, 2024. Use text-embedding-ada-002 instead. | |||
// Deprecated: The following block is shut down. Use text-embedding-ada-002 instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO these should just be removed now that they are shutdown, but wasn't sure that would cause issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much! We should enable integration tests in the CI on master merge
Describe the change
Updates the integration tests to the updated models so that the tests will work. Updated models based off of the Openai recommended upgrades https://platform.openai.com/docs/deprecations
Provide OpenAI documentation link
https://platform.openai.com/docs/deprecations
Describe your solution
Refactored the completion streaming test into its own class and added a
NoErrorF
check. This fixes the nil pointer dereference error when this test fails and allows the other tests to keep running.Updated the models the tests were using
Tests
Additional context
#761
Issue: #761