ref(node): use replaceExports core utility for openai/anthropic client patching#20097
ref(node): use replaceExports core utility for openai/anthropic client patching#20097nicohrubec wants to merge 1 commit intodevelopfrom
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Deps
Other
Bug Fixes 🐛
Internal Changes 🔧Core
Deps
Node
Other
🤖 This preview updates automatically when you update the PR. |
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
|
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you apply the label |
We have a core utility
replaceExportsthat does exactly what we need here, which we also already use in thegoogle-genaiinstrumentation, so we should use it foropenaiandanthropicas well.