Skip to content

Commit d1a9a4c

Browse files
committed
Change minimum langchain version to 1.0.0 since it is not backward compatible with previous versions.
1 parent 1047308 commit d1a9a4c

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/_release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ jobs:
8181
steps:
8282
- uses: actions/checkout@v4
8383

84+
- name: Set up Python + Poetry ${{ env.POETRY_VERSION }}
85+
uses: "./.github/actions/poetry_setup"
86+
with:
87+
python-version: ${{ env.PYTHON_VERSION }}
88+
poetry-version: ${{ env.POETRY_VERSION }}
89+
working-directory: ${{ inputs.working-directory }}
90+
cache-key: release
91+
8492
- name: Build project for distribution
8593
run: poetry build
8694
working-directory: ${{ inputs.working-directory }}

libs/oci/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/oci/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ license = "UPL"
1212

1313
[tool.poetry.dependencies]
1414
python = ">=3.10,<4.0"
15-
langchain-core = ">=0.3.20,<=1.0.4" # 0.3.20
16-
langchain = ">=0.3.20,<=1.0.4" # >=0.3.20
15+
langchain-core = ">=1.0.0,<=1.0.4" # Was >=0.3.20
16+
langchain = ">=1.0.0,<=1.0.4" # Was >=0.3.20
1717
oci = ">=2.161.0"
1818
pydantic = ">=2,<3"
1919
aiohttp = ">=3.12.14"

libs/oci/tests/integration_tests/chat_models/test_tool_calling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
from langchain_oci.chat_models import ChatOCIGenAI
6363

6464
def default_compartment():
65-
return "<compartment_ocid>" # for convenience
65+
return "ocid1.tenancy.oc1..aaaaaaaa7ayxuw32vjb64hbxtouarftwtwb2uat5x5mf4hu7cvzaesfrebrq"
6666

6767
def get_weather(city: str) -> str:
6868
"""Get the current weather for a given city name."""

0 commit comments

Comments
 (0)