@posthog/ai 8.15.2 → 8.16.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/README.md +145 -0
- 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/evaluations/index.cjs +1557 -0
- package/dist/evaluations/index.cjs.map +1 -0
- package/dist/evaluations/index.d.ts +497 -0
- package/dist/evaluations/index.mjs +1547 -0
- package/dist/evaluations/index.mjs.map +1 -0
- package/dist/gemini/index.cjs +1 -1
- package/dist/gemini/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 +2 -2
- package/dist/vercel/index.cjs.map +1 -1
- package/dist/vercel/index.mjs +2 -2
- package/dist/vercel/index.mjs.map +1 -1
- package/package.json +10 -5
package/dist/index.mjs
CHANGED
|
@@ -409,7 +409,7 @@ function sanitizeValues(obj) {
|
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
411
411
|
//#region package.json
|
|
412
|
-
var version = "8.
|
|
412
|
+
var version = "8.16.0";
|
|
413
413
|
//#endregion
|
|
414
414
|
//#region src/serializeError.ts
|
|
415
415
|
const DEFAULT_MAX_DEPTH = 3;
|
|
@@ -891,7 +891,7 @@ const wrapVercelLanguageModel = (model, phClient, options) => {
|
|
|
891
891
|
await captureAiGeneration(phClient, {
|
|
892
892
|
...baseOptions,
|
|
893
893
|
model: modelId,
|
|
894
|
-
provider: model
|
|
894
|
+
provider: extractProvider(model),
|
|
895
895
|
input: mergedOptions.posthogPrivacyMode ? "" : mapVercelPrompt(params.prompt, phClient),
|
|
896
896
|
output: [],
|
|
897
897
|
latency: (Date.now() - startTime) / 1e3,
|