Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(instr-openai): support openai@5 #521

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

trentm
Copy link
Member

@trentm trentm commented Jan 10, 2025

Add support for instrumenting openai@5, including prereleases (because that's all there are right now).

checklist

  • figure out unit testing

HTTP mocking troubles

openai@5 switched to Node.js native fetch() for HTTP requests. That means Node.js' internal undici is being used rather than the http/https modules. I believe that means nock for HTTP mocking no longer works.
I don't have an idea at a solution yet. Undici does have a https://undici.nodejs.org/#/docs/api/MockClient.md but I haven't played with that yet.

@trentm trentm self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant