Skip to content

Commit

Permalink
fix(openai): update openai instrumentation for newest release (#5271)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner authored and watson committed Feb 17, 2025
1 parent 15a8545 commit 785f1d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/datadog-instrumentations/src/openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ const V4_PACKAGE_SHIMS = [
targetClass: 'Translations',
baseResource: 'audio.translations',
methods: ['create']
},
{
file: 'resources/chat/completions/completions.js',
targetClass: 'Completions',
baseResource: 'chat.completions',
methods: ['create'],
streamedResponse: true,
versions: ['>=4.85.0']
}
]

Expand Down

0 comments on commit 785f1d0

Please sign in to comment.