@alpic80/rivet-ai-sdk-provider 2.0.7 → 2.0.8
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 +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1135,7 +1135,7 @@ prepare tools input:${printObject(tools)}`);
|
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
1137
|
// src/version.ts
|
|
1138
|
-
var VERSION = true ? "2.0.
|
|
1138
|
+
var VERSION = true ? "2.0.8" : "0.0.0-test";
|
|
1139
1139
|
|
|
1140
1140
|
// src/post-to-api.ts
|
|
1141
1141
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -1428,6 +1428,7 @@ var RivetChatLanguageModel = class {
|
|
|
1428
1428
|
abortSignal: options.abortSignal,
|
|
1429
1429
|
fetch: this.config.fetch
|
|
1430
1430
|
});
|
|
1431
|
+
debugLog(`generate response:${printObject(response)}`);
|
|
1431
1432
|
const choice = response.choices[0];
|
|
1432
1433
|
if (!choice) {
|
|
1433
1434
|
throw new Error("No choices found");
|
|
@@ -1462,6 +1463,7 @@ var RivetChatLanguageModel = class {
|
|
|
1462
1463
|
});
|
|
1463
1464
|
}
|
|
1464
1465
|
}
|
|
1466
|
+
debugLog(`generate content:${printObject(content)}`);
|
|
1465
1467
|
return {
|
|
1466
1468
|
content,
|
|
1467
1469
|
finishReason: mapRivetFinishReason(choice.finish_reason),
|