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 92b8d61 commit c3b4b22Copy full SHA for c3b4b22
packages/traceloop-sdk/src/lib/prompts/fetch.ts
@@ -1,7 +1,8 @@
1
import { InitializeOptions } from "../interfaces";
2
import fetch from "cross-fetch";
3
+import fetchBuilder from "fetch-retry";
4
-const fetchRetry = require("fetch-retry")(fetch);
5
+const fetchRetry = fetchBuilder(fetch);
6
7
export const fetchPrompts = async (options: InitializeOptions) => {
8
const { apiKey, baseUrl, traceloopSyncMaxRetries } = options;
0 commit comments