Comparing version 0.4.4 to 0.4.5
@@ -568,3 +568,3 @@ var __defProp = Object.defineProperty; | ||
name: "openpipe-dev", | ||
version: "0.4.4", | ||
version: "0.4.5", | ||
type: "module", | ||
@@ -633,5 +633,6 @@ description: "LLM metrics and inference", | ||
}); | ||
var withTimeout = (promise, timeout) => { | ||
var withTimeout = (promise, timeout, onTimedOut) => { | ||
return new Promise((resolve2, reject) => { | ||
const timeoutId = setTimeout(() => { | ||
onTimedOut?.(); | ||
reject(new APIConnectionTimeoutError({ message: "Request timed out" })); | ||
@@ -703,3 +704,4 @@ }, timeout); | ||
opClientPromise, | ||
options?.timeout ?? this.openaiClient.timeout | ||
options?.timeout ?? this.openaiClient.timeout, | ||
() => opClientPromise.cancel() | ||
); | ||
@@ -706,0 +708,0 @@ } else { |
@@ -559,3 +559,3 @@ var __accessCheck = (obj, member, msg) => { | ||
name: "openpipe-dev", | ||
version: "0.4.4", | ||
version: "0.4.5", | ||
type: "module", | ||
@@ -624,5 +624,6 @@ description: "LLM metrics and inference", | ||
}); | ||
var withTimeout = (promise, timeout) => { | ||
var withTimeout = (promise, timeout, onTimedOut) => { | ||
return new Promise((resolve2, reject) => { | ||
const timeoutId = setTimeout(() => { | ||
onTimedOut?.(); | ||
reject(new APIConnectionTimeoutError({ message: "Request timed out" })); | ||
@@ -694,3 +695,4 @@ }, timeout); | ||
opClientPromise, | ||
options?.timeout ?? this.openaiClient.timeout | ||
options?.timeout ?? this.openaiClient.timeout, | ||
() => opClientPromise.cancel() | ||
); | ||
@@ -697,0 +699,0 @@ } else { |
{ | ||
"name": "openpipe", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "LLM metrics and inference", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
359469
3717