-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OPIK-444] [SDK] Update OpenAI integration to support logging model a…
…nd provider in a new format (#766) * refactor SpanData creation * add fields to StartSpanParameters * add `provider` attribute to base decorator * handle `provider` and `model` attributes in openai track decorator * fix linter warnings * fix linter warnings * update e2e tests * remove span response payload workaround * move handling of distributed_trace_headers to _create_span() * move _create_span() to helpers * use only hostname during openai provider detection * use less strict check for openai model version in tests * fix linter warnings
- Loading branch information
1 parent
6ecd7bc
commit 330ea28
Showing
8 changed files
with
161 additions
and
96 deletions.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.