Skip to content

Commit 588bb01

Browse files
authored
fix(openai): support for 5.x versions (#646)
1 parent e240945 commit 588bb01

File tree

23 files changed

+1273
-2204
lines changed
  • packages/instrumentation-openai
    • recordings/Test-OpenAI-instrumentation_1770406427
      • should-calculate-correct-tokens-for-different-quality-levels_3292443992
      • should-emit-logprobs-span-event-for-stream-chat-completion_2713905208
      • should-set-attributes-in-span-for-image-editing_4216676336
      • should-set-attributes-in-span-for-image-generation_2726543658
      • should-set-attributes-in-span-for-image-variation_2237177737
      • should-set-attributes-in-span-for-streaming-chat-with-new-API_1429213105
      • should-set-attributes-in-span-for-streaming-chat_72904453
    • src
    • test
      • recordings/Test-OpenAI-instrumentation_1770406427
        • should-calculate-correct-tokens-for-different-quality-levels_3292443992
        • should-emit-logprobs-span-event-for-chat-completion_1028826680
        • should-emit-logprobs-span-event-for-stream-chat-completion_2713905208
        • should-set-attributes-in-span-for-chat_1427850401
        • should-set-attributes-in-span-for-completion_322013537
        • should-set-attributes-in-span-for-function-calling_1703714575
        • should-set-attributes-in-span-for-image-generation_2726543658
        • should-set-attributes-in-span-for-streaming-chat_72904453
        • should-set-attributes-in-span-for-streaming-completion_1484001317
        • should-set-attributes-in-span-for-tool-calling_1747151373
        • should-set-function_call-attributes-in-span-for-stream-completion-when-multiple-tools-cal_2278551756

23 files changed

+1273
-2204
lines changed

packages/instrumentation-openai/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@
5454
"@pollyjs/persister-fs": "^6.0.6",
5555
"@types/mocha": "^10.0.10",
5656
"@types/node": "^24.0.15",
57+
"@types/node-fetch": "^2.6.13",
5758
"mocha": "^11.7.1",
58-
"openai": "4.38.3",
59+
"node-fetch": "^2.7.0",
60+
"openai": "5.12.2",
5961
"ts-mocha": "^11.1.0"
6062
},
6163
"homepage": "https://github.com/traceloop/openllmetry-js/tree/main/packages/instrumentation-openai",

0 commit comments

Comments
 (0)