Commit cf46052
fix(openai): remove openai API key parsing entirely (#15626)
## Description
Closes #15585.
This PR removes API key parsing from the openai integration for two
reasons:
1. We were not using this anywhere (we used to tag the last 4 digits of
the API key similar to how OpenAI formats theirs in UI, but tagging this
was removed quite some time ago)
2. This caused errors in use cases involving `azure-identity` that
involved API keys as functions (i.e. not directly storing API keys in
app/memory), because we always assumed this was a string.
<!-- Provide an overview of the change and motivation for the change -->
## Testing
<!-- Describe your testing strategy or note what tests are included -->
## Risks
<!-- Note any risks associated with this change, or "None" if no risks
-->
## Additional Notes
<!-- Any other information that would be helpful for reviewers -->
(cherry picked from commit 1714b7e)1 parent 466bc54 commit cf46052
File tree
3 files changed
+4
-18
lines changed- ddtrace
- contrib/internal/openai
- llmobs/_integrations
- releasenotes/notes
3 files changed
+4
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 196 | | |
202 | 197 | | |
203 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 48 | | |
62 | 49 | | |
63 | 50 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments