Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @langchain/google-genai versioning #3648

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/core_docs/docs/integrations/platforms/google.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Functionality related to [Google Cloud Platform](https://cloud.google.com/)

### ChatGoogleGenerativeAI

Access Gemini models such as `gemini-pro` and `gemini-pro-vision` through the `ChatGoogleGenerativeAI` class.
Access Gemini models such as `gemini-pro` and `gemini-pro-vision` through the [`ChatGoogleGenerativeAI`](/docs/integrations/chat/google_generativeai) class.

```bash npm2yarn
npm install @langchain/google-genai
Expand All @@ -19,6 +19,8 @@ export GOOGLE_API_KEY=your-api-key
```

```typescript
import { ChatGoogleGenerativeAI } from "@langchain/google-genai";

const model = new ChatGoogleGenerativeAI({
modelName: "gemini-pro",
maxOutputTokens: 2048,
Expand Down
4 changes: 2 additions & 2 deletions libs/langchain-google-genai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langchain/google-genai",
"version": "0.0.1",
"version": "0.0.2",
"description": "Sample integration for LangChain.js",
"type": "module",
"engines": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"license": "MIT",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there! I noticed the change in the @langchain/core dependency version in the langchain-google-genai package. This seems to be a dev dependency change, and I'm flagging this for the maintainers to review. Keep up the great work!

"dependencies": {
"@google/generative-ai": "^0.1.0",
"@langchain/core": "~0.1.1"
"@langchain/core": "~0.1.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8498,7 +8498,7 @@ __metadata:
"@google/generative-ai": ^0.1.0
"@jest/globals": ^29.5.0
"@langchain/community": "workspace:*"
"@langchain/core": ~0.1.1
"@langchain/core": ~0.1.0
"@swc/core": ^1.3.90
"@swc/jest": ^0.2.29
"@tsconfig/recommended": ^1.0.3
Expand Down