Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner committed Jan 29, 2025
1 parent 69426fb commit 9718edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {
const { assert } = require('chai')

// TODO(sabrenner): re-enable once issues with mocking OpenAI calls are resolved
describe.skip('esm', () => {
describe('esm', () => {
let agent
let proc
let sandbox
Expand Down
18 changes: 1 addition & 17 deletions packages/datadog-plugin-openai/test/integration-test/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,7 @@ import nock from 'nock'

nock('https://api.openai.com:443')
.post('/v1/completions')
.reply(200, {}, [
'Date', 'Mon, 15 May 2023 17:24:22 GMT',
'Content-Type', 'application/json',
'Content-Length', '349',
'Connection', 'close',
'openai-model', 'text-davinci-002',
'openai-organization', 'kill-9',
'openai-processing-ms', '442',
'openai-version', '2020-10-01',
'x-ratelimit-limit-requests', '3000',
'x-ratelimit-limit-tokens', '250000',
'x-ratelimit-remaining-requests', '2999',
'x-ratelimit-remaining-tokens', '249984',
'x-ratelimit-reset-requests', '20ms',
'x-ratelimit-reset-tokens', '3ms',
'x-request-id', '7df89d8afe7bf24dc04e2c4dd4962d7f'
])
.reply(200, {})

const openaiApp = new openai.OpenAIApi(new openai.Configuration({
apiKey: 'sk-DATADOG-ACCEPTANCE-TESTS'
Expand Down

0 comments on commit 9718edd

Please sign in to comment.