mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-14 08:56:27 +00:00
google-vertexai[patch]: integration test fix, release 0.0.5 (#17258)
This commit is contained in:
parent
98176ac982
commit
d77bb7b4e9
@ -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,
|
||||||
|
935
libs/partners/google-vertexai/poetry.lock
generated
935
libs/partners/google-vertexai/poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||||
@ -24,11 +24,11 @@ optional = true
|
|||||||
[tool.poetry.group.test.dependencies]
|
[tool.poetry.group.test.dependencies]
|
||||||
pytest = "^7.3.0"
|
pytest = "^7.3.0"
|
||||||
freezegun = "^1.2.2"
|
freezegun = "^1.2.2"
|
||||||
pytest-mock = "^3.10.0"
|
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,20 +55,20 @@ 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 = [
|
||||||
"E", # pycodestyle
|
"E", # pycodestyle
|
||||||
"F", # pyflakes
|
"F", # pyflakes
|
||||||
"I", # isort
|
"I", # isort
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
@ -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"]
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user