Skip to content

Commit 48f4cfc

Browse files
fix: 'RequestOptions' is not generic
1 parent f2a4cb2 commit 48f4cfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/core/openai-monitor.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class OpenAIMonitor {
213213
public createChatCompletion = async (
214214
body: ChatCompletionCreateParams,
215215
options?: RequestOptions,
216-
additionalLogs?: Openlayer.RequestOptions<any> | undefined,
216+
additionalLogs?: Openlayer.RequestOptions | undefined,
217217
): Promise<ChatCompletion | Stream<ChatCompletionChunk>> => {
218218
// Start a timer to measure latency
219219
const startTime = Date.now();
@@ -309,7 +309,7 @@ class OpenAIMonitor {
309309
public createCompletion = async (
310310
body: CompletionCreateParams,
311311
options?: RequestOptions,
312-
additionalLogs?: Openlayer.RequestOptions<any> | undefined,
312+
additionalLogs?: Openlayer.RequestOptions | undefined,
313313
): Promise<Completion | Stream<Completion>> => {
314314
if (!body.prompt) {
315315
console.error('No prompt provided.');
@@ -407,7 +407,7 @@ class OpenAIMonitor {
407407
* @param {Openlayer.RequestOptions<any> | undefined} [additionalLogs] - Optional metadata logs to include with the request sent to Openlayer.
408408
* @returns {Promise<void>} A promise that resolves when the run data has been successfully published to Openlayer.
409409
*/
410-
public async monitorThreadRun(run: Run, additionalLogs?: Openlayer.RequestOptions<any> | undefined) {
410+
public async monitorThreadRun(run: Run, additionalLogs?: Openlayer.RequestOptions | undefined) {
411411
if (run.status !== 'completed' || this.openlayerInferencePipelineId.length === 0) {
412412
return;
413413
}

0 commit comments

Comments
 (0)