@posthog/ai 7.8.4 → 7.8.6
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/anthropic/index.cjs +1 -1
- package/dist/anthropic/index.mjs +1 -1
- package/dist/gemini/index.cjs +1 -1
- package/dist/gemini/index.mjs +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/langchain/index.cjs +1 -1
- package/dist/langchain/index.mjs +1 -1
- package/dist/openai/index.cjs +1 -1
- package/dist/openai/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/anthropic/index.cjs
CHANGED
|
@@ -11,7 +11,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
11
11
|
|
|
12
12
|
var AnthropicOriginal__default = /*#__PURE__*/_interopDefault(AnthropicOriginal);
|
|
13
13
|
|
|
14
|
-
var version = "7.8.
|
|
14
|
+
var version = "7.8.6";
|
|
15
15
|
|
|
16
16
|
// Type guards for safer type checking
|
|
17
17
|
|
package/dist/anthropic/index.mjs
CHANGED
package/dist/gemini/index.cjs
CHANGED
package/dist/gemini/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -30,7 +30,7 @@ function _interopNamespace(e) {
|
|
|
30
30
|
var uuid__namespace = /*#__PURE__*/_interopNamespace(uuid);
|
|
31
31
|
var AnthropicOriginal__default = /*#__PURE__*/_interopDefault(AnthropicOriginal);
|
|
32
32
|
|
|
33
|
-
var version = "7.8.
|
|
33
|
+
var version = "7.8.6";
|
|
34
34
|
|
|
35
35
|
// Type guards for safer type checking
|
|
36
36
|
const isString = value => {
|
|
@@ -4390,7 +4390,7 @@ function isPromptsWithPostHog(options) {
|
|
|
4390
4390
|
* // Or with direct options (no PostHog client needed)
|
|
4391
4391
|
* const prompts = new Prompts({
|
|
4392
4392
|
* personalApiKey: 'phx_xxx',
|
|
4393
|
-
* host: 'https://us.
|
|
4393
|
+
* host: 'https://us.posthog.com',
|
|
4394
4394
|
* })
|
|
4395
4395
|
*
|
|
4396
4396
|
* // Fetch with caching and fallback
|
|
@@ -4416,7 +4416,7 @@ class Prompts {
|
|
|
4416
4416
|
} else {
|
|
4417
4417
|
// Direct options
|
|
4418
4418
|
this.personalApiKey = options.personalApiKey;
|
|
4419
|
-
this.host = options.host ?? 'https://us.
|
|
4419
|
+
this.host = options.host ?? 'https://us.posthog.com';
|
|
4420
4420
|
}
|
|
4421
4421
|
}
|
|
4422
4422
|
/**
|
|
@@ -4499,7 +4499,7 @@ class Prompts {
|
|
|
4499
4499
|
if (!this.personalApiKey) {
|
|
4500
4500
|
throw new Error('[PostHog Prompts] personalApiKey is required to fetch prompts. ' + 'Please provide it when initializing the Prompts instance.');
|
|
4501
4501
|
}
|
|
4502
|
-
const url = `${this.host}/api/
|
|
4502
|
+
const url = `${this.host}/api/environments/@current/llm_prompts/name/${encodeURIComponent(name)}/`;
|
|
4503
4503
|
const response = await fetch(url, {
|
|
4504
4504
|
method: 'GET',
|
|
4505
4505
|
headers: {
|