Skip to content

Commit 7393c2b

Browse files
committed
fix(instrumentation-openai): fix isEnabled() check
1 parent 86eef0d commit 7393c2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/instrumentation-openai/src/instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class OpenAIInstrumentation extends InstrumentationBase<OpenAIInstrumenta
177177
this: ChatCompletions,
178178
...args: Parameters<ChatCompletions['create']>
179179
) {
180-
if (!self.isEnabled) {
180+
if (!self.isEnabled()) {
181181
return original.apply(this, args);
182182
}
183183

@@ -742,7 +742,7 @@ export class OpenAIInstrumentation extends InstrumentationBase<OpenAIInstrumenta
742742
this: Embeddings,
743743
...args: Parameters<Embeddings['create']>
744744
) {
745-
if (!self.isEnabled) {
745+
if (!self.isEnabled()) {
746746
return original.apply(this, args);
747747
}
748748

0 commit comments

Comments
 (0)