google-vertexai[patch]: integration test fix, release 0.0.5 (#17258)

This commit is contained in:
Erick Friis 2024-02-08 11:45:33 -08:00 committed by GitHub
parent 98176ac982
commit d77bb7b4e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 480 additions and 484 deletions

View File

@ -7,7 +7,7 @@ from typing import Any, Callable, Dict, Optional, Union
import google.api_core import google.api_core
import proto # type: ignore[import-untyped] import proto # type: ignore[import-untyped]
from google.api_core.gapic_v1.client_info import ClientInfo from google.api_core.gapic_v1.client_info import ClientInfo
from google.cloud import storage from google.cloud import storage # type: ignore[attr-defined]
from langchain_core.callbacks import ( from langchain_core.callbacks import (
AsyncCallbackManagerForLLMRun, AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun, CallbackManagerForLLMRun,

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "langchain-google-vertexai" name = "langchain-google-vertexai"
version = "0.0.4" version = "0.0.5"
description = "An integration package connecting GoogleVertexAI and LangChain" description = "An integration package connecting GoogleVertexAI and LangChain"
authors = [] authors = []
readme = "README.md" readme = "README.md"
@ -28,7 +28,7 @@ pytest-mock = "^3.10.0"
syrupy = "^4.0.2" syrupy = "^4.0.2"
pytest-watcher = "^0.3.4" pytest-watcher = "^0.3.4"
pytest-asyncio = "^0.21.1" pytest-asyncio = "^0.21.1"
langchain-core = {path = "../../core", develop = true} langchain-core = { path = "../../core", develop = true }
types-requests = "^2.31.0.20231231" types-requests = "^2.31.0.20231231"
types-protobuf = "^4.24.0.4" types-protobuf = "^4.24.0.4"
@ -42,8 +42,9 @@ codespell = "^2.2.0"
optional = true optional = true
[tool.poetry.group.test_integration.dependencies] [tool.poetry.group.test_integration.dependencies]
langchain = {path = "../../langchain"} langchain = { path = "../../langchain" }
numexpr = {version = "^2.8.8", python = ">=3.9,<4.0"} langchain-community = { path = "../../community" }
numexpr = { version = "^2.8.8", python = ">=3.9,<4.0" }
google-api-python-client = "^2.114.0" google-api-python-client = "^2.114.0"
[tool.poetry.group.lint] [tool.poetry.group.lint]
@ -54,14 +55,14 @@ ruff = "^0.1.5"
[tool.poetry.group.typing.dependencies] [tool.poetry.group.typing.dependencies]
mypy = "^1" mypy = "^1"
langchain-core = {path = "../../core", develop = true} langchain-core = { path = "../../core", develop = true }
types-google-cloud-ndb = "^2.2.0.20240106" types-google-cloud-ndb = "^2.2.0.20240106"
[tool.poetry.group.dev] [tool.poetry.group.dev]
optional = true optional = true
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
langchain-core = {path = "../../core", develop = true} langchain-core = { path = "../../core", develop = true }
[tool.ruff] [tool.ruff]
select = [ select = [
@ -83,9 +84,7 @@ warn_unused_configs = true
warn_unused_ignores = true warn_unused_ignores = true
[tool.coverage.run] [tool.coverage.run]
omit = [ omit = ["tests/*"]
"tests/*",
]
[build-system] [build-system]
requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.0"]

View File

@ -88,7 +88,7 @@ def test_tools() -> None:
# use regex to find \d+\.\d+ # use regex to find \d+\.\d+
just_numbers = re.findall(r"\d+\.\d+", response["output"])[0] just_numbers = re.findall(r"\d+\.\d+", response["output"])[0]
assert round(float(just_numbers), 3) == 2.161 assert round(float(just_numbers), 2) == 2.16
def test_stream() -> None: def test_stream() -> None: