@vincemakes/kiso-provider-openai-responses 0.39.2 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* - exactly ONE fetch per stream — no retry loop lives here;
|
|
28
28
|
* - every non-2xx becomes `mapApiError(status, message, retryAfterMs)`.
|
|
29
29
|
*/
|
|
30
|
-
import { mapApiError, parseRetryAfter, streamFailure } from "@vincemakes/kiso-core";
|
|
30
|
+
import { connectionFailure, mapApiError, parseRetryAfter, streamFailure } from "@vincemakes/kiso-core";
|
|
31
31
|
const FIRST_PARTY_BASE = "https://api.openai.com/v1";
|
|
32
32
|
const CHATGPT_BASE = "https://chatgpt.com/backend-api";
|
|
33
33
|
/**
|
|
@@ -637,5 +637,5 @@ function toTransportError(err, providerId) {
|
|
|
637
637
|
if (isAbort(err))
|
|
638
638
|
return err;
|
|
639
639
|
const message = err instanceof Error ? err.message : String(err);
|
|
640
|
-
return
|
|
640
|
+
return connectionFailure(err, `[${providerId}] request failed: ${message}`);
|
|
641
641
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincemakes/kiso-provider-openai-responses",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "kiso OpenAI Responses adapter \u2014 the first-party Responses API and the ChatGPT subscription backend, one adapter, plain fetch + SSE.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "vitest run"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@vincemakes/kiso-core": "0.
|
|
24
|
+
"@vincemakes/kiso-core": "0.40.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^26.1.2",
|