From 8ae512ec7d46c40a84a35cd40f316a186529cf5d Mon Sep 17 00:00:00 2001 From: fern-support <126544928+fern-support@users.noreply.github.com> Date: Thu, 12 Mar 2026 09:48:42 -0400 Subject: [PATCH 1/2] newline --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c474bb632..718c2fdc6 100644 --- a/README.md +++ b/README.md @@ -63,3 +63,4 @@ for event in response: While we value open-source contributions to this SDK, the code is generated programmatically. Additions made directly would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us! On the other hand, contributions to the README are always very welcome! + From ece582201682c8853813b82a63510f950a69b7af Mon Sep 17 00:00:00 2001 From: fern-support <126544928+fern-support@users.noreply.github.com> Date: Thu, 12 Mar 2026 11:21:23 -0400 Subject: [PATCH 2/2] fix: Patch deprecated model in langchain-cohere CI tests command-r-plus resolves to command-r-plus-04-2024 which was deprecated 2025-09-15, causing flaky tool calling failures. Patch the cloned langchain-cohere tests to use command-a-03-2025 instead. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c04552f43..2110f7ac9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,12 +76,19 @@ jobs: poetry add ../../../cohere-python echo "Current cohere installation: $(poetry show cohere)" + + # Patch deprecated model references in langchain-cohere tests + # command-r-plus resolves to command-r-plus-04-2024, deprecated 2025-09-15 + # ChatCohere() with no model arg also resolves to a deprecated default + sed -i 's/DEFAULT_MODEL = "command-r-plus"/DEFAULT_MODEL = "command-a-03-2025"/' tests/integration_tests/test_langgraph_agents.py + sed -i 's/model = ChatCohere()/model = ChatCohere(model="command-a-03-2025")/' tests/integration_tests/test_langgraph_agents.py + make test make integration_test echo "tests passed" - # reset poetry changes - git checkout -- poetry.lock pyproject.toml + # reset all changes (poetry files + patched test) + git checkout -- . set -eu