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 proto # type: ignore[import-untyped]
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 (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "langchain-google-vertexai"
version = "0.0.4"
version = "0.0.5"
description = "An integration package connecting GoogleVertexAI and LangChain"
authors = []
readme = "README.md"
@ -43,6 +43,7 @@ optional = true
[tool.poetry.group.test_integration.dependencies]
langchain = { path = "../../langchain" }
langchain-community = { path = "../../community" }
numexpr = { version = "^2.8.8", python = ">=3.9,<4.0" }
google-api-python-client = "^2.114.0"
@ -83,9 +84,7 @@ warn_unused_configs = true
warn_unused_ignores = true
[tool.coverage.run]
omit = [
"tests/*",
]
omit = ["tests/*"]
[build-system]
requires = ["poetry-core>=1.0.0"]

View File

@ -88,7 +88,7 @@ def test_tools() -> None:
# use regex to find \d+\.\d+
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: