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