-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
Problem Statement
Currently OpenAI integration works only for vanilla open AI client OpenAI class in openai module.
The Azure OpenAI version is not instrumented despite being included in the openai module and exposing the same interface.
Solution Brainstorm
Slightly refactoring the packages/node/src/integrations/tracing/openai/instrumentation.ts to be able to patch the two clients may work:
private _patch(exports: PatchedModuleExports): PatchedModuleExports | void {
let result = exports;
result = this._patchClient(result, 'OpenAI');
result = this._patchClient(result, 'AzureOpenAI');
return result;
}Additional Context
No response
Priority
React with π to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Metadata
Metadata
Assignees
Projects
Status
Waiting for: Product Owner