Skip to content

Commit

Permalink
fixed metatada in client_info
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuligin committed Apr 13, 2024
1 parent 3d253a8 commit c60f428
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions libs/community/langchain_google_community/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ def get_user_agent(module: Optional[str] = None) -> Tuple[str, str]:
Tuple[str, str]
"""
try:
langchain_version = metadata.version("langchain")
langchain_version = metadata.version("langchain-google-community")
except metadata.PackageNotFoundError:
langchain_version = "0.0.0"
client_library_version = (
f"{langchain_version}-{module}" if module else langchain_version
)
return client_library_version, f"langchain/{client_library_version}"
return client_library_version, f"langchain-google-community/{client_library_version}"

Check failure on line 25 in libs/community/langchain_google_community/_utils.py

View workflow job for this annotation

GitHub Actions / cd libs/community / - / make lint #3.8

Ruff (E501)

langchain_google_community/_utils.py:25:89: E501 Line too long (89 > 88)

Check failure on line 25 in libs/community/langchain_google_community/_utils.py

View workflow job for this annotation

GitHub Actions / cd libs/community / - / make lint #3.11

Ruff (E501)

langchain_google_community/_utils.py:25:89: E501 Line too long (89 > 88)


def get_client_info(module: Optional[str] = None) -> "ClientInfo":
Expand Down
2 changes: 1 addition & 1 deletion libs/community/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langchain-google-community"
version = "1.0.2"
version = "1.0.3"
description = "An integration package connecting miscellaneous Google's products and LangChain"
authors = []
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions libs/vertexai/langchain_google_vertexai/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ def get_user_agent(module: Optional[str] = None) -> Tuple[str, str]:
Tuple[str, str]
"""
try:
langchain_version = metadata.version("langchain")
langchain_version = metadata.version("langchain-google-vertexai")
except metadata.PackageNotFoundError:
langchain_version = "0.0.0"
client_library_version = (
f"{langchain_version}-{module}" if module else langchain_version
)
return client_library_version, f"langchain/{client_library_version}"
return client_library_version, f"langchain-google-vertexai/{client_library_version}"


def get_client_info(module: Optional[str] = None) -> "ClientInfo":
Expand Down
2 changes: 1 addition & 1 deletion libs/vertexai/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "langchain-google-vertexai"

version = "1.0.1"
version = "1.0.2"
description = "An integration package connecting Google VertexAI and LangChain"
authors = []
readme = "README.md"
Expand Down

0 comments on commit c60f428

Please sign in to comment.