Skip to content

Commit

Permalink
Add unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Jan 4, 2024
1 parent 55c402b commit d9a4277
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ export class OpenAIInstrumentation extends InstrumentationBase<typeof openai> {
private unpatch(moduleExports: typeof openai, moduleVersion?: string) {
diag.debug(`Removing patch for ${MODULE_NAME}@${moduleVersion}`);
this._unwrap(moduleExports.OpenAI.Chat.Completions.prototype, "create");
this._unwrap(moduleExports.OpenAI.Embeddings.prototype, "create");
}
}

Expand Down

0 comments on commit d9a4277

Please sign in to comment.