newrelic / newrelic-python-agent

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

Openai stream v1 support #1061

Closed hmstepanek closed 9 months ago

hmstepanek commented 9 months ago

Add support for streaming in openai v1

github-actions[bot] commented 9 months ago

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 2 0 5.7s
✅ PYTHON black 6 0 0 1.98s
✅ PYTHON flake8 6 0 1.15s
✅ PYTHON isort 6 0 0 0.33s
❌ PYTHON pylint 6 16 9.88s

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 9 months ago

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (d61d065) 81.85% compared to head (19e6d44) 81.88%.

Files Patch % Lines
newrelic/hooks/mlmodel_openai.py 82.85% 1 Missing and 5 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## add-streaming-support #1061 +/- ## ========================================================= + Coverage 81.85% 81.88% +0.02% ========================================================= Files 192 192 Lines 20968 21002 +34 Branches 3650 3658 +8 ========================================================= + Hits 17163 17197 +34 + Misses 2751 2748 -3 - Partials 1054 1057 +3 ```

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