@theokit/sdk 2.11.2 → 2.11.3
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/CHANGELOG.md +6 -0
- package/dist/a2a/index.cjs +10 -0
- package/dist/a2a/index.cjs.map +1 -1
- package/dist/a2a/index.js +10 -0
- package/dist/a2a/index.js.map +1 -1
- package/dist/cron.cjs +10 -0
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +10 -0
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +10 -0
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +10 -0
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/llm/openai.d.ts +12 -0
- package/package.json +3 -3
package/dist/a2a/index.js
CHANGED
|
@@ -10276,6 +10276,16 @@ var init_openai2 = __esm({
|
|
|
10276
10276
|
} catch {
|
|
10277
10277
|
continue;
|
|
10278
10278
|
}
|
|
10279
|
+
if (chunk.error !== void 0 && chunk.error !== null) {
|
|
10280
|
+
const status = typeof chunk.error.code === "number" ? chunk.error.code : 502;
|
|
10281
|
+
throw mapOpenAICompatibleError({
|
|
10282
|
+
providerId,
|
|
10283
|
+
status,
|
|
10284
|
+
body: chunk,
|
|
10285
|
+
headers: response.headers,
|
|
10286
|
+
endpoint: "/v1/chat/completions"
|
|
10287
|
+
});
|
|
10288
|
+
}
|
|
10279
10289
|
const events = accumulator.consume(chunk);
|
|
10280
10290
|
for (const event of events) yield event;
|
|
10281
10291
|
}
|