@posthog/ai 8.23.1 → 8.24.0
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 +1 -1
- package/dist/anthropic/index.mjs +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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +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 +5 -5
package/dist/index.mjs
CHANGED
|
@@ -603,7 +603,7 @@ function sanitizeValues(obj) {
|
|
|
603
603
|
}
|
|
604
604
|
//#endregion
|
|
605
605
|
//#region package.json
|
|
606
|
-
var version = "8.
|
|
606
|
+
var version = "8.24.0";
|
|
607
607
|
//#endregion
|
|
608
608
|
//#region src/serializeError.ts
|
|
609
609
|
const DEFAULT_MAX_DEPTH = 3;
|
|
@@ -1786,7 +1786,7 @@ var Prompts = class {
|
|
|
1786
1786
|
*/
|
|
1787
1787
|
compile(prompt, variables) {
|
|
1788
1788
|
return prompt.replace(/\{\{([\w.-]+)\}\}/g, (match, variableName) => {
|
|
1789
|
-
if (variableName
|
|
1789
|
+
if (Object.prototype.hasOwnProperty.call(variables, variableName)) return String(variables[variableName]);
|
|
1790
1790
|
return match;
|
|
1791
1791
|
});
|
|
1792
1792
|
}
|