Skip to content

Commit afbdb1d

Browse files
author
Stainless Bot
committed
feat: chore: deprecate the OpenAI monitor
1 parent 46bd515 commit afbdb1d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/core/openai-monitor.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @deprecated The module is deprecated. Please use the OpenAI tracer module instead. Refer to https://www.openlayer.com/docs/monitoring/publishing-data#openai for details.
3+
*/
14
import OpenAI from 'openai';
25
import { RequestOptions } from 'openai/core';
36
import {
@@ -99,6 +102,9 @@ const OpenAIPricing: { [key: string]: Pricing } = {
99102
},
100103
};
101104

105+
/**
106+
* @deprecated The OpenAIMonitor is deprecated. Please use the OpenAI tracer module instead. Refer to https://www.openlayer.com/docs/monitoring/publishing-data#openai for details.
107+
*/
102108
class OpenAIMonitor {
103109
private openlayerClient: Openlayer;
104110

0 commit comments

Comments
 (0)