-
Notifications
You must be signed in to change notification settings - Fork 190
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: add condition to init encoder #329
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #329 +/- ##
=======================================
Coverage 71.83% 71.83%
=======================================
Files 45 45
Lines 2901 2901
=======================================
Hits 2084 2084
Misses 817 817 ☔ View full report in Codecov by Sentry. |
PR Type
Bug fix, Tests
Description
openai_encoder
fixture to return aBaseEncoder
instance if theOPENAI_API_KEY
environment variable is not set.OPENAI_API_KEY
is missing.BaseEncoder
in the test file.Changes walkthrough 📝
test_openai_integration.py
Add condition to initialize OpenAI encoder based on API key.
tests/integration/encoders/test_openai_integration.py
BaseEncoder
.openai_encoder
fixture to returnBaseEncoder
ifOPENAI_API_KEY
is not set.