We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86eef0d commit 7393c2bCopy full SHA for 7393c2b
packages/instrumentation-openai/src/instrumentation.ts
@@ -177,7 +177,7 @@ export class OpenAIInstrumentation extends InstrumentationBase<OpenAIInstrumenta
177
this: ChatCompletions,
178
...args: Parameters<ChatCompletions['create']>
179
) {
180
- if (!self.isEnabled) {
+ if (!self.isEnabled()) {
181
return original.apply(this, args);
182
}
183
@@ -742,7 +742,7 @@ export class OpenAIInstrumentation extends InstrumentationBase<OpenAIInstrumenta
742
this: Embeddings,
743
...args: Parameters<Embeddings['create']>
744
745
746
747
748
0 commit comments