@ai-sdk/google
Advanced tools
Comparing version 0.0.48 to 0.0.49
@@ -529,3 +529,3 @@ "use strict"; | ||
promptTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number().nullish(), | ||
totalTokenCount: import_zod2.z.number() | ||
@@ -543,3 +543,3 @@ }).optional() | ||
promptTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number().nullish(), | ||
totalTokenCount: import_zod2.z.number() | ||
@@ -546,0 +546,0 @@ }).optional() |
# @ai-sdk/google | ||
## 0.0.49 | ||
### Patch Changes | ||
- 2e32bd0: fix (provider/google): deal with empty candidatesTokenCount | ||
- 2e32bd0: feat (provider/google): add new models | ||
## 0.0.48 | ||
@@ -4,0 +11,0 @@ |
import { LanguageModelV1, ProviderV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
import { FetchFunction } from '@ai-sdk/provider-utils'; | ||
type GoogleGenerativeAIModelId = 'gemini-1.5-flash-latest' | 'gemini-1.5-flash' | 'gemini-1.5-pro-latest' | 'gemini-1.5-pro' | 'gemini-1.0-pro' | 'gemini-pro' | (string & {}); | ||
type GoogleGenerativeAIModelId = 'gemini-1.5-flash-latest' | 'gemini-1.5-flash' | 'gemini-1.5-flash-002' | 'gemini-1.5-pro-latest' | 'gemini-1.5-pro' | 'gemini-1.5-pro-002' | 'gemini-1.0-pro' | 'gemini-pro' | (string & {}); | ||
interface GoogleGenerativeAISettings { | ||
@@ -87,5 +87,2 @@ /** | ||
textEmbedding(modelId: GoogleGenerativeAIEmbeddingModelId, settings?: GoogleGenerativeAIEmbeddingSettings): EmbeddingModelV1<string>; | ||
/** | ||
@deprecated Use `textEmbeddingModel()` instead. | ||
*/ | ||
textEmbeddingModel(modelId: GoogleGenerativeAIEmbeddingModelId, settings?: GoogleGenerativeAIEmbeddingSettings): EmbeddingModelV1<string>; | ||
@@ -92,0 +89,0 @@ } |
@@ -529,3 +529,3 @@ "use strict"; | ||
promptTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number().nullish(), | ||
totalTokenCount: import_zod2.z.number() | ||
@@ -543,3 +543,3 @@ }).optional() | ||
promptTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number(), | ||
candidatesTokenCount: import_zod2.z.number().nullish(), | ||
totalTokenCount: import_zod2.z.number() | ||
@@ -546,0 +546,0 @@ }).optional() |
{ | ||
"name": "@ai-sdk/google", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -1,4 +0,4 @@ | ||
# Vercel AI SDK - Google Generative AI Provider | ||
# AI SDK - Google Generative AI Provider | ||
The **[Google Generative AI provider](https://sdk.vercel.ai/providers/ai-sdk-providers/google-generative-ai)** for the [Vercel AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Google Generative AI](https://ai.google/discover/generativeai/) APIs. | ||
The **[Google Generative AI provider](https://sdk.vercel.ai/providers/ai-sdk-providers/google-generative-ai)** for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the [Google Generative AI](https://ai.google/discover/generativeai/) APIs. | ||
@@ -5,0 +5,0 @@ ## Setup |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184080
2359