@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.mjs CHANGED
@@ -1059,6 +1059,7 @@ prepare tools input:${printObject(tools)}`);
1059
1059
  })) != null ? _a15 : {};
1060
1060
  rivetTools.push({
1061
1061
  name: tool.name,
1062
+ namespace: "openapi",
1062
1063
  description: tool.description || "",
1063
1064
  parameters: tool.inputSchema,
1064
1065
  strict: false
@@ -1101,7 +1102,7 @@ prepare tools input:${printObject(tools)}`);
1101
1102
  }
1102
1103
 
1103
1104
  // src/version.ts
1104
- var VERSION = true ? "2.0.6" : "0.0.0-test";
1105
+ var VERSION = true ? "2.0.8" : "0.0.0-test";
1105
1106
 
1106
1107
  // src/post-to-api.ts
1107
1108
  var getOriginalFetch = () => globalThis.fetch;
@@ -1394,6 +1395,7 @@ var RivetChatLanguageModel = class {
1394
1395
  abortSignal: options.abortSignal,
1395
1396
  fetch: this.config.fetch
1396
1397
  });
1398
+ debugLog(`generate response:${printObject(response)}`);
1397
1399
  const choice = response.choices[0];
1398
1400
  if (!choice) {
1399
1401
  throw new Error("No choices found");
@@ -1428,6 +1430,7 @@ var RivetChatLanguageModel = class {
1428
1430
  });
1429
1431
  }
1430
1432
  }
1433
+ debugLog(`generate content:${printObject(content)}`);
1431
1434
  return {
1432
1435
  content,
1433
1436
  finishReason: mapRivetFinishReason(choice.finish_reason),