Skip to content

Commit

Permalink
chore: Update logRequest method signature to use LogRequest type
Browse files Browse the repository at this point in the history
  • Loading branch information
abubakarsohail committed Sep 5, 2024
1 parent 7bc80a5 commit 5d7c29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { wrapWithSpan } from "@/span-wrapper";
import { TemplateManager } from "@/templates";
import { getTracer, setupTracing } from "@/tracing";
import { TrackManager } from "@/track";
import { GetPromptTemplateParams, RunRequest } from "@/types";
import { GetPromptTemplateParams, LogRequest, RunRequest } from "@/types";
import {
anthropicRequest,
anthropicStreamCompletion,
Expand Down Expand Up @@ -235,7 +235,7 @@ export class PromptLayer {
});
}

async logRequest(body: Parameters<typeof utilLogRequest>[1]) {
async logRequest(body: LogRequest) {
return utilLogRequest(this.apiKey, body);
}
}

0 comments on commit 5d7c29d

Please sign in to comment.