@posthog/ai 7.3.0 → 7.3.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/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { ResponseCreateParamsWithTools, ExtractParsedContentFromParams } from 'o
6
6
  import { LanguageModelV2, LanguageModelV3 } from '@ai-sdk/provider';
7
7
  import AnthropicOriginal, { APIPromise as APIPromise$1 } from '@anthropic-ai/sdk';
8
8
  import { Stream as Stream$1 } from '@anthropic-ai/sdk/streaming';
9
- import { GoogleGenAI, GenerateContentParameters, GenerateContentResponse } from '@google/genai';
9
+ import { GoogleGenAI, GenerateContentParameters, GenerateContentResponse, GoogleGenAIOptions } from '@google/genai';
10
10
  import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
11
11
  import { Serialized } from '@langchain/core/load/serializable';
12
12
  import { ChainValues } from '@langchain/core/utils/types';
@@ -191,12 +191,7 @@ declare class WrappedMessages extends AnthropicOriginal.Messages {
191
191
  create(body: MessageCreateParamsBase & MonitoringParams, options?: RequestOptions): APIPromise$1<Stream$1<RawMessageStreamEvent> | Message>;
192
192
  }
193
193
 
194
- interface MonitoringGeminiConfig {
195
- apiKey?: string;
196
- vertexai?: boolean;
197
- project?: string;
198
- location?: string;
199
- apiVersion?: string;
194
+ interface MonitoringGeminiConfig extends GoogleGenAIOptions {
200
195
  posthog: PostHog;
201
196
  }
202
197
  declare class PostHogGoogleGenAI {
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { v4 } from 'uuid';
5
5
  import AnthropicOriginal from '@anthropic-ai/sdk';
6
6
  import { GoogleGenAI } from '@google/genai';
7
7
 
8
- var version = "7.3.0";
8
+ var version = "7.3.1";
9
9
 
10
10
  // Type guards for safer type checking
11
11
  const isString = value => {