Commit 1714b7e
authored
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 -->1 parent 53cf907 commit 1714b7e
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 | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 54 | | |
68 | 55 | | |
69 | 56 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments