newrelic / newrelic-python-agent

New Relic Python Agent
https://docs.newrelic.com/docs/agents/python-agent
Apache License 2.0
176 stars 99 forks source link

Early exit for OpenAI's .with_streaming_response. #1157

Closed lrafeei closed 3 months ago

lrafeei commented 3 months ago

This is part 2 of https://github.com/newrelic/newrelic-python-agent/pull/1138

For now, an exit condition will be added to instances where this wrapper is used and support for this will be added later.

github-actions[bot] commented 3 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 1 0 5.03s
✅ PYTHON black 3 0 0 1.23s
✅ PYTHON flake8 3 0 0.71s
✅ PYTHON isort 3 0 0 0.3s
✅ PYTHON pylint 3 0 4.23s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

codecov-commenter commented 3 months ago

Codecov Report

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

Project coverage is 81.74%. Comparing base (73f3197) to head (794abb8).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1157 +/- ## ========================================== + Coverage 81.60% 81.74% +0.14% ========================================== Files 195 195 Lines 21639 21643 +4 Branches 3777 3779 +2 ========================================== + Hits 17658 17692 +34 + Misses 2884 2853 -31 - Partials 1097 1098 +1 ```

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