Skip to content

Commit

Permalink
Merge pull request #222 from ai-forever/feature/support_lib_versions_…
Browse files Browse the repository at this point in the history
…control

Support packages versions for giga-libs
  • Loading branch information
Rai220 authored Sep 16, 2024
2 parents c2495fc + b2bc517 commit 34e289c
Show file tree
Hide file tree
Showing 15 changed files with 218 additions and 128 deletions.
6 changes: 3 additions & 3 deletions docs/docs_ru/cookbook/agents/gigachat_phone_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"@tool\n",
"def get_phone_data_by_name(name: str) -> Dict:\n",
" \"\"\"\n",
" Возвращает цену, характеристики и описание телефона по точному названию модели.\n",
" Возвращает цену в долларах, характеристики и описание телефона по точному названию модели.\n",
"\n",
" Args:\n",
" name (str): Точное название модели телефона.\n",
Expand All @@ -205,10 +205,10 @@
" # Подсвечивает вызов функции зеленым цветом\n",
" print(\"\\033[92m\" + f\"Bot requested get_phone_data_by_name({name})\" + \"\\033[0m\")\n",
" for stuff in stuff_database:\n",
" if stuff[\"name\"] == name:\n",
" if stuff[\"name\"] == name.strip():\n",
" return stuff\n",
"\n",
" return {}"
" return {\"error\": \"Телефон с таким названием не найден\"}"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion libs/cli/langchain_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from importlib import metadata

try:
__version__ = metadata.version(__package__)
__version__ = metadata.version("gigachain_cli")
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
Expand Down
2 changes: 1 addition & 1 deletion libs/community/langchain_community/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
_check_gigachain_core_version()

try:
__version__ = metadata.version(__package__)
__version__ = metadata.version("gigachain_community")
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
Expand Down
2 changes: 1 addition & 1 deletion libs/core/langchain_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)

try:
__version__ = metadata.version(__package__)
__version__ = metadata.version("gigachain_core")
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
Expand Down
2 changes: 1 addition & 1 deletion libs/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "gigachain-core"
version = "0.2.38"
version = "0.2.38post1"
description = "Building applications with LLMs through composability"
authors = []
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion libs/experimental/langchain_experimental/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from importlib import metadata

try:
__version__ = metadata.version(__package__)
__version__ = metadata.version("gigachain_experimental")
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
Expand Down
2 changes: 1 addition & 1 deletion libs/partners/box/langchain_box/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from langchain_box.utilities import BoxAuth, BoxAuthType, _BoxAPIWrapper

try:
__version__ = metadata.version(__package__)
__version__ = metadata.version("gigachain_box")
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
Expand Down
72 changes: 49 additions & 23 deletions libs/partners/chroma/poetry.lock

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

2 changes: 1 addition & 1 deletion libs/partners/chroma/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ mypy = "^1.10"
types-requests = "^2.31.0.20240406"


[tool.poetry.group.test.dependencies.langchain-core]
[tool.poetry.group.test.dependencies.gigachain-core]
path = "../../core"
develop = true

Expand Down
117 changes: 49 additions & 68 deletions libs/partners/milvus/poetry.lock

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

6 changes: 3 additions & 3 deletions libs/partners/milvus/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ mypy = "^0.991"
types-requests = "^2"
simsimd = "^5.0.0"

[tool.poetry.group.test.dependencies.langchain-core]
[tool.poetry.group.test.dependencies.gigachain-core]
path = "../../core"
develop = true

[tool.poetry.group.typing.dependencies.langchain-core]
[tool.poetry.group.typing.dependencies.gigachain-core]
path = "../../core"
develop = true

[tool.poetry.group.dev.dependencies.langchain-core]
[tool.poetry.group.dev.dependencies.gigachain-core]
path = "../../core"
develop = true
2 changes: 1 addition & 1 deletion libs/partners/ollama/langchain_ollama/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from langchain_ollama.llms import OllamaLLM

try:
__version__ = metadata.version(__package__)
__version__ = metadata.version("gigachain_ollama")
except metadata.PackageNotFoundError:
# Case where package metadata is not available.
__version__ = ""
Expand Down
Loading

0 comments on commit 34e289c

Please sign in to comment.