New:Socket for Asana Is Now Available.Learn more
Get Started

@ai-sdk/google

Package Overview
Dependencies
Maintainers
3
Versions
641
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/google - npm Package Compare versions

Comparing version
2.0.93
to
2.0.94
+7
-0
CHANGELOG.md
# @ai-sdk/google
## 2.0.94
### Patch Changes
- c43ba7d: Surface prompt-level Google safety blocks without candidates as content-filter results with prompt feedback metadata.
- 7a292cd: Omit unsupported frequency and presence penalties from Gemini 2.5 requests and return warnings instead.
## 2.0.93

@@ -4,0 +11,0 @@

+6
-5

@@ -54,3 +54,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
candidates: {
candidates?: {
content?: Record<string, never> | {

@@ -145,3 +145,3 @@ parts?: ({

} | null | undefined;
}[];
}[] | null | undefined;
usageMetadata?: {

@@ -176,5 +176,6 @@ cachedContentTokenCount?: number | null | undefined;

}>;
type GroundingMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['safetyRatings']>[number];
type CandidateSchema = NonNullable<InferValidator<typeof responseSchema>['candidates']>[number];
type GroundingMetadataSchema = NonNullable<CandidateSchema['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<CandidateSchema['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<CandidateSchema['safetyRatings']>[number];

@@ -181,0 +182,0 @@ type GoogleGenerativeAIGroundingMetadata = GroundingMetadataSchema;

@@ -54,3 +54,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
candidates: {
candidates?: {
content?: Record<string, never> | {

@@ -145,3 +145,3 @@ parts?: ({

} | null | undefined;
}[];
}[] | null | undefined;
usageMetadata?: {

@@ -176,5 +176,6 @@ cachedContentTokenCount?: number | null | undefined;

}>;
type GroundingMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['safetyRatings']>[number];
type CandidateSchema = NonNullable<InferValidator<typeof responseSchema>['candidates']>[number];
type GroundingMetadataSchema = NonNullable<CandidateSchema['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<CandidateSchema['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<CandidateSchema['safetyRatings']>[number];

@@ -181,0 +182,0 @@ type GoogleGenerativeAIGroundingMetadata = GroundingMetadataSchema;

@@ -85,3 +85,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
candidates: {
candidates?: {
content?: Record<string, never> | {

@@ -176,3 +176,3 @@ parts?: ({

} | null | undefined;
}[];
}[] | null | undefined;
usageMetadata?: {

@@ -207,5 +207,6 @@ cachedContentTokenCount?: number | null | undefined;

}>;
type GroundingMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['safetyRatings']>[number];
type CandidateSchema = NonNullable<InferValidator<typeof responseSchema>['candidates']>[number];
type GroundingMetadataSchema = NonNullable<CandidateSchema['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<CandidateSchema['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<CandidateSchema['safetyRatings']>[number];

@@ -212,0 +213,0 @@ declare const googleTools: {

@@ -85,3 +85,3 @@ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';

declare const responseSchema: _ai_sdk_provider_utils.LazySchema<{
candidates: {
candidates?: {
content?: Record<string, never> | {

@@ -176,3 +176,3 @@ parts?: ({

} | null | undefined;
}[];
}[] | null | undefined;
usageMetadata?: {

@@ -207,5 +207,6 @@ cachedContentTokenCount?: number | null | undefined;

}>;
type GroundingMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<InferValidator<typeof responseSchema>['candidates'][number]['safetyRatings']>[number];
type CandidateSchema = NonNullable<InferValidator<typeof responseSchema>['candidates']>[number];
type GroundingMetadataSchema = NonNullable<CandidateSchema['groundingMetadata']>;
type UrlContextMetadataSchema = NonNullable<CandidateSchema['urlContextMetadata']>;
type SafetyRatingSchema = NonNullable<CandidateSchema['safetyRatings']>[number];

@@ -212,0 +213,0 @@ declare const googleTools: {

{
"name": "@ai-sdk/google",
"version": "2.0.93",
"version": "2.0.94",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display