Sydney Runkle
7e926520d5
packaging: remove Python upper bound for langchain and co libs ( #31025 )
...
Follow up to https://github.com/langchain-ai/langsmith-sdk/pull/1696 ,
I've bumped the `langsmith` version where applicable in `uv.lock`.
Type checking problems here because deps have been updated in
`pyproject.toml` and `uv lock` hasn't been run - we should enforce that
in the future - goes with the other dependabot todos :).
2025-04-28 14:44:28 -04:00
ccurme
f0f90c4d88
anthropic: release 0.3.12 ( #30907 )
2025-04-17 14:45:12 +00:00
ccurme
3382ee8f57
anthropic: release 0.3.11 ( #30857 )
2025-04-15 17:57:00 +00:00
Sydney Runkle
8c6734325b
partners[lint]: run pyupgrade to get code in line with 3.9 standards ( #30781 )
...
Using `pyupgrade` to get all `partners` code up to 3.9 standards
(mostly, fixing old `typing` imports).
2025-04-11 07:18:44 -04:00
ccurme
422ba4cde5
infra: handle flaky tests ( #30501 )
2025-03-26 13:28:56 -04:00
ccurme
d5d0134e7b
anthropic: release 0.3.10 ( #30287 )
2025-03-14 16:23:21 +00:00
ccurme
226f29bc96
anthropic: support built-in tools, improve docs ( #30274 )
...
- Support features from recent update:
https://www.anthropic.com/news/token-saving-updates (mostly adding
support for built-in tools in `bind_tools`
- Add documentation around prompt caching, token-efficient tool use, and
built-in tools.
2025-03-14 16:18:50 +00:00
ccurme
ba5ddb218f
anthropic[patch]: release 0.3.9 ( #30103 )
2025-03-04 10:53:55 -05:00
ccurme
79f5bbfb26
anthropic[patch]: release 0.3.8 ( #29973 )
2025-02-24 15:24:35 -05:00
ccurme
ded886f622
anthropic[patch]: support claude 3.7 sonnet ( #29971 )
2025-02-24 15:17:47 -05:00
Erick Friis
1a225fad03
multiple: fix uv path deps ( #29790 )
...
file:// format wasn't working with updates - it doesn't install as an
editable dep
move to tool.uv.sources with path= instead
2025-02-13 21:32:34 +00:00
ccurme
488cb4a739
anthropic: release 0.3.7 ( #29653 )
2025-02-06 17:05:57 -05:00
ccurme
d172984c91
infra: migrate to uv ( #29566 )
2025-02-06 13:36:26 -05:00
ccurme
91a33a9211
anthropic[patch]: release 0.3.6 ( #29606 )
2025-02-05 14:18:02 +00:00
ccurme
5cbe6aba8f
anthropic[patch]: support citations in streaming ( #29591 )
2025-02-05 09:12:07 -05:00
Erick Friis
685609e1ef
partners/anthropic: release 0.3.5 ( #29486 )
2025-01-29 22:22:11 +00:00
ccurme
bbc50f65e7
anthropic[patch]: release 0.3.4 ( #29399 )
2025-01-23 23:55:58 +00:00
ccurme
184ea8aeb2
anthropic[patch]: update tool choice type ( #29276 )
2025-01-17 15:26:33 -05:00
ccurme
ac52021097
anthropic[patch]: release 0.3.2 ( #29275 )
2025-01-17 19:48:31 +00:00
Erick Friis
c55af44711
anthropic: pydantic mypy plugin ( #29144 )
2025-01-13 15:32:40 -08:00
Erick Friis
0a54aedb85
anthropic: pdf integration test ( #29142 )
2025-01-10 21:56:31 +00:00
Erick Friis
fcc9cdd100
multiple: disable socket for unit tests ( #29080 )
2025-01-07 15:31:50 -08:00
Erick Friis
f1d783748a
anthropic: sdk bump ( #28820 )
2024-12-19 15:39:21 +00:00
Erick Friis
4eb8bf7793
partners/anthropic: release 0.3.1 ( #28801 )
2024-12-18 22:45:38 +00:00
Erick Friis
c5acedddc2
anthropic: timeout in tests (10s) ( #28488 )
2024-12-04 16:03:38 -08:00
Erick Friis
6d2004ee7d
multiple: langchain-standard-tests -> langchain-tests ( #28139 )
2024-11-15 11:32:04 -08:00
ccurme
2898b95ca7
anthropic[major]: release 0.3.0 ( #28063 )
2024-11-12 14:58:00 -05:00
ccurme
1538ee17f9
anthropic[major]: support python 3.13 ( #27916 )
...
Last week Anthropic released version 0.39.0 of its python sdk, which
enabled support for Python 3.13. This release deleted a legacy
`client.count_tokens` method, which we currently access during init of
the `Anthropic` LLM. Anthropic has replaced this functionality with the
[client.beta.messages.count_tokens()
API](https://github.com/anthropics/anthropic-sdk-python/pull/726 ).
To enable support for `anthropic >= 0.39.0` and Python 3.13, here we
drop support for the legacy token counting method, and add support for
the new method via `ChatAnthropic.get_num_tokens_from_messages`.
To fully support the token counting API, we update the signature of
`get_num_tokens_from_message` to accept tools everywhere.
---------
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
2024-11-12 14:31:07 -05:00
Bagatur
06420de2e7
integrations[patch]: bump core to 0.3.15 ( #27805 )
2024-10-31 11:27:05 -07:00
Erick Friis
92ae61bcc8
multiple: rely on asyncio_mode auto in tests ( #27200 )
2024-10-15 16:26:38 +00:00
Bagatur
06ce5d1d5c
anthropic[patch]: Release 0.2.3 ( #27126 )
2024-10-04 22:38:03 +00:00
Bagatur
414fe16071
anthropic[patch]: Release 0.2.2 ( #27118 )
2024-10-04 11:53:53 -07:00
Bagatur
1a62f9850f
anthropic[patch]: Release 0.2.1 ( #26592 )
2024-09-17 14:44:21 -07:00
Erick Friis
832bc834b1
partners/anthropic: release 0.2.0 ( #26469 )
...
0.3.0 version was a mistake! not released - bumping version back to
0.2.0 here
2024-09-13 22:47:09 +00:00
Erick Friis
6997731729
partners/anthropic: release 0.3.0 ( #26466 )
2024-09-13 22:44:11 +00:00
Erick Friis
c2a3021bb0
multiple: pydantic 2 compatibility, v0.3 ( #26443 )
...
Signed-off-by: ChengZi <chen.zhang@zilliz.com >
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com >
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com >
Co-authored-by: Dan O'Donovan <dan.odonovan@gmail.com >
Co-authored-by: Tom Daniel Grande <tomdgrande@gmail.com >
Co-authored-by: Grande <Tom.Daniel.Grande@statsbygg.no >
Co-authored-by: Bagatur <baskaryan@gmail.com >
Co-authored-by: ccurme <chester.curme@gmail.com >
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com >
Co-authored-by: Tomaz Bratanic <bratanic.tomaz@gmail.com >
Co-authored-by: ZhangShenao <15201440436@163.com >
Co-authored-by: Friso H. Kingma <fhkingma@gmail.com >
Co-authored-by: ChengZi <chen.zhang@zilliz.com >
Co-authored-by: Nuno Campos <nuno@langchain.dev >
Co-authored-by: Morgante Pell <morgantep@google.com >
2024-09-13 14:38:45 -07:00
Bagatur
eec7bb4f51
anthropic[patch]: Release 0.1.23 ( #25394 )
2024-08-14 09:03:39 -07:00
Bagatur
752a71b688
integrations[patch]: release model packages ( #24900 )
2024-07-31 20:48:20 +00:00
Bagatur
b3a23ddf93
integration releases ( #24725 )
...
Release anthropic, openai, groq, mistralai, robocorp
2024-07-26 12:30:10 -07:00
Erick Friis
3dce2e1d35
all: add release notes to pypi ( #24519 )
2024-07-22 13:59:13 -07:00
Bagatur
259d4d2029
anthropic[patch]: Release 0.1.20 ( #24204 )
2024-07-12 13:59:15 -07:00
Bagatur
cb5031f22f
integrations[patch]: require core >=0.2.17 ( #24207 )
2024-07-12 20:54:01 +00:00
Bagatur
a0c2281540
infra: update mypy 1.10, ruff 0.5 ( #23721 )
...
```python
"""python scripts/update_mypy_ruff.py"""
import glob
import tomllib
from pathlib import Path
import toml
import subprocess
import re
ROOT_DIR = Path(__file__).parents[1]
def main():
for path in glob.glob(str(ROOT_DIR / "libs/**/pyproject.toml"), recursive=True):
print(path)
with open(path, "rb") as f:
pyproject = tomllib.load(f)
try:
pyproject["tool"]["poetry"]["group"]["typing"]["dependencies"]["mypy"] = (
"^1.10"
)
pyproject["tool"]["poetry"]["group"]["lint"]["dependencies"]["ruff"] = (
"^0.5"
)
except KeyError:
continue
with open(path, "w") as f:
toml.dump(pyproject, f)
cwd = "/".join(path.split("/")[:-1])
completed = subprocess.run(
"poetry lock --no-update; poetry install --with typing; poetry run mypy . --no-color",
cwd=cwd,
shell=True,
capture_output=True,
text=True,
)
logs = completed.stdout.split("\n")
to_ignore = {}
for l in logs:
if re.match("^(.*)\:(\d+)\: error:.*\[(.*)\]", l):
path, line_no, error_type = re.match(
"^(.*)\:(\d+)\: error:.*\[(.*)\]", l
).groups()
if (path, line_no) in to_ignore:
to_ignore[(path, line_no)].append(error_type)
else:
to_ignore[(path, line_no)] = [error_type]
print(len(to_ignore))
for (error_path, line_no), error_types in to_ignore.items():
all_errors = ", ".join(error_types)
full_path = f"{cwd}/{error_path}"
try:
with open(full_path, "r") as f:
file_lines = f.readlines()
except FileNotFoundError:
continue
file_lines[int(line_no) - 1] = (
file_lines[int(line_no) - 1][:-1] + f" # type: ignore[{all_errors}]\n"
)
with open(full_path, "w") as f:
f.write("".join(file_lines))
subprocess.run(
"poetry run ruff format .; poetry run ruff --select I --fix .",
cwd=cwd,
shell=True,
capture_output=True,
text=True,
)
if __name__ == "__main__":
main()
```
2024-07-03 10:33:27 -07:00
Bagatur
ebb404527f
anthropic[patch]: Release 0.1.19 ( #23783 )
2024-07-02 18:17:25 -04:00
ccurme
7c1cddf1b7
anthropic[patch]: release 0.1.18 ( #23778 )
2024-07-02 16:46:47 -04:00
Bagatur
b63c7f10bc
anthropic[patch]: Release 0.1.17 ( #23650 )
2024-06-28 17:07:08 -07:00
Bagatur
a7ab93479b
anthropic[patch]: Release 0.1.16 ( #23549 )
2024-06-26 20:49:13 +00:00
Bagatur
678a19a5f7
infra: bump anthropic mypy 1 ( #22373 )
2024-06-03 08:21:55 -07:00
Bagatur
a8098f5ddb
anthropic[patch]: Release 0.1.15, fix sdk tools break ( #22369 )
2024-05-31 12:10:22 -07:00
Erick Friis
42ffcb2ff1
anthropic: release 0.1.14rc2, test release note gen ( #22147 )
2024-05-24 12:40:10 -07:00