Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/google

Package Overview
Dependencies
Maintainers
2
Versions
67
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 0.0.2 to 0.0.3

6

./dist/index.js

@@ -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",

4

dist/index.d.ts

@@ -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",

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc