Skip to content

Commit

Permalink
fix for new openai version
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner committed Feb 13, 2025
1 parent 238c990 commit 319074c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion initialize.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (isMainThread) {
require('./init.js')
if (Module.register) {
Module.register('./loader-hook.mjs', import.meta.url, {
data: { exclude: [/langsmith/, /openai\/_shims/] }
data: { exclude: [/langsmith/, /openai\/_shims/, /openai\/resources\/chat\/completions\/messages/] }
})
}
}
2 changes: 1 addition & 1 deletion register.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ const { register } = require('node:module')
const { pathToFileURL } = require('node:url')

register('./loader-hook.mjs', pathToFileURL(__filename), {
data: { exclude: [/langsmith/, /openai\/_shims/] }
data: { exclude: [/langsmith/, /openai\/_shims/, /openai\/resources\/chat\/completions\/messages/] }
})

0 comments on commit 319074c

Please sign in to comment.