@broberg/ai-sdk 0.78.0 → 0.78.1
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.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1596,8 +1596,8 @@ declare const falStubAdapter: ProviderAdapter;
|
|
|
1596
1596
|
* wires the live adapters. */
|
|
1597
1597
|
declare const stubProviders: Record<string, ProviderAdapter>;
|
|
1598
1598
|
|
|
1599
|
-
declare const VERSION: "0.78.
|
|
1600
|
-
declare const SDK_TAG: "@broberg/ai-sdk@0.78.
|
|
1599
|
+
declare const VERSION: "0.78.1";
|
|
1600
|
+
declare const SDK_TAG: "@broberg/ai-sdk@0.78.1";
|
|
1601
1601
|
|
|
1602
1602
|
/** Built-in defaults. Every entry is overridable via AiConfig.defaults or a
|
|
1603
1603
|
* per-call override.
|
package/dist/index.js
CHANGED
|
@@ -1276,8 +1276,9 @@ function makeOpenAICompatibleAdapter(config) {
|
|
|
1276
1276
|
const choice = chunk.choices?.[0];
|
|
1277
1277
|
if (choice) {
|
|
1278
1278
|
const delta = choice.delta ?? {};
|
|
1279
|
-
|
|
1280
|
-
|
|
1279
|
+
const piece = contentToText(delta.content);
|
|
1280
|
+
if (piece.length > 0) {
|
|
1281
|
+
const out = stripStreamPrefix(piece);
|
|
1281
1282
|
if (out.length > 0) yield { type: "text", delta: out };
|
|
1282
1283
|
}
|
|
1283
1284
|
for (const tc of delta.tool_calls ?? []) {
|
|
@@ -4591,8 +4592,8 @@ var aiConfigSchema = z.object({
|
|
|
4591
4592
|
import { randomUUID } from "crypto";
|
|
4592
4593
|
|
|
4593
4594
|
// src/version.ts
|
|
4594
|
-
var VERSION = "0.78.
|
|
4595
|
-
var SDK_TAG = "@broberg/ai-sdk@0.78.
|
|
4595
|
+
var VERSION = "0.78.1";
|
|
4596
|
+
var SDK_TAG = "@broberg/ai-sdk@0.78.1";
|
|
4596
4597
|
|
|
4597
4598
|
// src/cost/sinks/upmetrics.ts
|
|
4598
4599
|
function isRetryableStatus(status) {
|