@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.mjs
CHANGED
|
@@ -1102,7 +1102,7 @@ prepare tools input:${printObject(tools)}`);
|
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
1104
|
// src/version.ts
|
|
1105
|
-
var VERSION = true ? "2.0.
|
|
1105
|
+
var VERSION = true ? "2.0.8" : "0.0.0-test";
|
|
1106
1106
|
|
|
1107
1107
|
// src/post-to-api.ts
|
|
1108
1108
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -1395,6 +1395,7 @@ var RivetChatLanguageModel = class {
|
|
|
1395
1395
|
abortSignal: options.abortSignal,
|
|
1396
1396
|
fetch: this.config.fetch
|
|
1397
1397
|
});
|
|
1398
|
+
debugLog(`generate response:${printObject(response)}`);
|
|
1398
1399
|
const choice = response.choices[0];
|
|
1399
1400
|
if (!choice) {
|
|
1400
1401
|
throw new Error("No choices found");
|
|
@@ -1429,6 +1430,7 @@ var RivetChatLanguageModel = class {
|
|
|
1429
1430
|
});
|
|
1430
1431
|
}
|
|
1431
1432
|
}
|
|
1433
|
+
debugLog(`generate content:${printObject(content)}`);
|
|
1432
1434
|
return {
|
|
1433
1435
|
content,
|
|
1434
1436
|
finishReason: mapRivetFinishReason(choice.finish_reason),
|