@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.
@@ -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.4";
14
+ var version = "7.8.6";
15
15
 
16
16
  // Type guards for safer type checking
17
17
 
@@ -3,7 +3,7 @@ import { Buffer } from 'buffer';
3
3
  import { v4 } from 'uuid';
4
4
  import { uuidv7 } from '@posthog/core';
5
5
 
6
- var version = "7.8.4";
6
+ var version = "7.8.6";
7
7
 
8
8
  // Type guards for safer type checking
9
9
 
@@ -7,7 +7,7 @@ var buffer = require('buffer');
7
7
  var uuid = require('uuid');
8
8
  var core = require('@posthog/core');
9
9
 
10
- var version = "7.8.4";
10
+ var version = "7.8.6";
11
11
 
12
12
  // Type guards for safer type checking
13
13
 
@@ -3,7 +3,7 @@ import { Buffer } from 'buffer';
3
3
  import { v4 } from 'uuid';
4
4
  import { uuidv7 } from '@posthog/core';
5
5
 
6
- var version = "7.8.4";
6
+ var version = "7.8.6";
7
7
 
8
8
  // Type guards for safer type checking
9
9
 
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.4";
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.i.posthog.com',
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.i.posthog.com';
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/projects/@current/llm_prompts/name/${encodeURIComponent(name)}/`;
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: {