-
Notifications
You must be signed in to change notification settings - Fork 64
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
feat: Add support for OpenAI client library for .NET #2987
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI AI monitoring capabilities Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI LLM tests Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI tests Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> --------- Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com>
* Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI AI monitoring capabilities Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI wrapper Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI LLM tests Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> * Adding OpenAI tests Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> --------- Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com> Co-authored-by: Marty T <120425148+tippmar-nr@users.noreply.github.com>
ChatClient
chynesNR
reviewed
Feb 11, 2025
src/Agent/NewRelic/Agent/Extensions/NewRelic.Agent.Extensions/Llm/OpenAi/OpenAILlmModelType.cs
Outdated
Show resolved
Hide resolved
chynesNR
reviewed
Feb 11, 2025
...wRelic/Agent/Extensions/NewRelic.Agent.Extensions/Llm/OpenAi/OpenAILlmModelTypeExtensions.cs
Outdated
Show resolved
Hide resolved
chynesNR
reviewed
Feb 11, 2025
src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/OpenAI/OpenAIChatWrapper.cs
Outdated
Show resolved
Hide resolved
chynesNR
reviewed
Feb 11, 2025
src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/OpenAI/OpenAIChatWrapper.cs
Outdated
Show resolved
Hide resolved
nrcventura
reviewed
Feb 11, 2025
src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/OpenAI/OpenAIChatWrapper.cs
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2987 +/- ##
==========================================
+ Coverage 82.17% 82.19% +0.01%
==========================================
Files 473 475 +2
Lines 30391 30450 +59
Branches 3392 3407 +15
==========================================
+ Hits 24975 25027 +52
- Misses 4617 4621 +4
- Partials 799 802 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
nrcventura
approved these changes
Feb 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BEGIN_COMMIT_OVERRIDE
feat: Add AI Monitoring instrumentation for OpenAI and Azure.AI.OpenAI (#2987)
END_COMMIT_OVERRIDE
Description
Adds instrumentation for the OpenAI client library for .NET, version 2.0.0 and later. Note that this feature also supports Azure.AI.OpenAI version 2.0.0 and later.
Text
chat completions for the following methods are instrumented:CompleteChatAsync()
CompleteChat()
Includes unit and integration tests.
Thanks to @harrykimpel for the initial implementation work!
Author Checklist
Reviewer Checklist