@ai-sdk/google
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -458,3 +458,9 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated Use `chat()` instead. | ||
*/ | ||
generativeAI(modelId, settings = {}) { | ||
return this.chat(modelId, settings); | ||
} | ||
chat(modelId, settings = {}) { | ||
return new GoogleGenerativeAILanguageModel(modelId, settings, { | ||
@@ -461,0 +467,0 @@ provider: "google.generative-ai", |
@@ -56,3 +56,7 @@ import { LanguageModelV1 } from '@ai-sdk/provider'; | ||
private get baseConfig(); | ||
/** | ||
* @deprecated Use `chat()` instead. | ||
*/ | ||
generativeAI(modelId: GoogleGenerativeAIModelId, settings?: GoogleGenerativeAISettings): GoogleGenerativeAILanguageModel; | ||
chat(modelId: GoogleGenerativeAIModelId, settings?: GoogleGenerativeAISettings): GoogleGenerativeAILanguageModel; | ||
} | ||
@@ -59,0 +63,0 @@ /** |
@@ -458,3 +458,9 @@ "use strict"; | ||
} | ||
/** | ||
* @deprecated Use `chat()` instead. | ||
*/ | ||
generativeAI(modelId, settings = {}) { | ||
return this.chat(modelId, settings); | ||
} | ||
chat(modelId, settings = {}) { | ||
return new GoogleGenerativeAILanguageModel(modelId, settings, { | ||
@@ -461,0 +467,0 @@ provider: "google.generative-ai", |
{ | ||
"name": "@ai-sdk/google", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -33,3 +33,3 @@ # Vercel AI SDK - Google Provider | ||
You can create models that call the [Google Generative AI API](https://ai.google.dev/api/rest) using the `.generativeAI()` factory method. | ||
You can create models that call the [Google Generative AI API](https://ai.google.dev/api/rest) using the `.chat()` factory method. | ||
The first argument is the model id, e.g. `models/gemini-pro`. | ||
@@ -39,3 +39,3 @@ The models support tool calls and some have multi-modal capabilities. | ||
```ts | ||
const model = google.generativeAI('models/gemini-pro'); | ||
const model = google.chat('models/gemini-pro'); | ||
``` | ||
@@ -47,5 +47,5 @@ | ||
```ts | ||
const model = google.generativeAI('models/gemini-pro', { | ||
const model = google.chat('models/gemini-pro', { | ||
topK: 0.2, | ||
}); | ||
``` |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
101942
1456
0