Skip to content

Commit

Permalink
google-genai[patch]: add google-genai integration deps and extras (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Dec 14, 2023
1 parent ba897fc commit 1cec0af
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
9 changes: 8 additions & 1 deletion libs/partners/google-genai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ This package contains the LangChain integrations for Gemini through their genera

## Installation

```python
```bash
pip install -U langchain-google-genai
```

### Image utilities
To use image utility methods, like loading images from GCS urls, install with extras group 'images':

```bash
pip install -e "langchain-google-genai[images]"
```

## Chat Models

This package contains the `ChatGoogleGenerativeAI` class, which is the recommended way to interface with the Google Gemini series of models.
Expand Down
16 changes: 15 additions & 1 deletion libs/partners/google-genai/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion libs/partners/google-genai/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langchain-google-genai"
version = "0.0.3"
version = "0.0.4"
description = "An integration package connecting Google's genai package and LangChain"
authors = []
readme = "README.md"
Expand All @@ -10,6 +10,10 @@ repository = "https://github.com/langchain-ai/langchain/blob/master/libs/partner
python = ">=3.9,<4.0"
langchain-core = "^0.1"
google-generativeai = "^0.3.1"
pillow = { version = "^10.1.0", optional = true }

[tool.poetry.extras]
images = ["pillow"]

[tool.poetry.group.test]
optional = true
Expand All @@ -34,6 +38,8 @@ codespell = "^2.2.0"
optional = true

[tool.poetry.group.test_integration.dependencies]
pillow = "^10.1.0"


[tool.poetry.group.lint]
optional = true
Expand Down

0 comments on commit 1cec0af

Please sign in to comment.