@posthog/ai 8.21.0 → 8.21.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/adk/index.cjs +1 -1
- package/dist/adk/index.mjs +1 -1
- package/dist/anthropic/index.cjs +2 -2
- package/dist/anthropic/index.cjs.map +1 -1
- package/dist/anthropic/index.mjs +2 -2
- package/dist/anthropic/index.mjs.map +1 -1
- package/dist/claude-agent-sdk/index.cjs +1 -1
- package/dist/claude-agent-sdk/index.mjs +1 -1
- package/dist/gemini/index.cjs +1 -1
- package/dist/gemini/index.mjs +1 -1
- package/dist/genkit/index.cjs +1 -1
- package/dist/genkit/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/langchain/index.cjs +1 -1
- package/dist/langchain/index.mjs +1 -1
- package/dist/langchain/middleware/index.cjs +1 -1
- package/dist/langchain/middleware/index.mjs +1 -1
- package/dist/openai/index.cjs +1 -1
- package/dist/openai/index.mjs +1 -1
- package/dist/openai-agents/index.cjs +1 -1
- package/dist/openai-agents/index.mjs +1 -1
- package/dist/vercel/index.cjs +1 -1
- package/dist/vercel/index.mjs +1 -1
- package/package.json +3 -3
package/dist/anthropic/index.mjs
CHANGED
|
@@ -467,7 +467,7 @@ function addDefaults(params) {
|
|
|
467
467
|
}
|
|
468
468
|
//#endregion
|
|
469
469
|
//#region package.json
|
|
470
|
-
var version = "8.21.
|
|
470
|
+
var version = "8.21.1";
|
|
471
471
|
//#endregion
|
|
472
472
|
//#region src/serializeError.ts
|
|
473
473
|
const DEFAULT_MAX_DEPTH = 3;
|
|
@@ -1212,7 +1212,7 @@ var WrappedMessages = class extends AnthropicOriginal.Messages {
|
|
|
1212
1212
|
currentReasoningBlock = null;
|
|
1213
1213
|
const tool = toolsInProgress.get(chunk.index);
|
|
1214
1214
|
if (tool) {
|
|
1215
|
-
try {
|
|
1215
|
+
if (tool.inputString) try {
|
|
1216
1216
|
tool.block.function.arguments = JSON.parse(tool.inputString);
|
|
1217
1217
|
} catch (e) {
|
|
1218
1218
|
console.error("Error parsing tool input:", e);
|