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
ccurme
152c8cac33
anthropic, openai: cut pre-releases ( #22083 )
2024-05-23 15:02:23 -04:00
ccurme
4470d3b4a0
partners: bump core in packages implementing ls_params ( #21868 )
...
These packages all import `LangSmithParams` which was released in
langchain-core==0.2.0.
N.B. we will need to release `openai` and then bump `langchain-openai`
in `together` and `upstage`.
2024-05-20 11:51:43 -07:00
Bagatur
6416d16d39
anthropic[patch]: Release 0.1.13, tool_choice support ( #21773 )
2024-05-16 17:56:29 +00:00
Erick Friis
aca98fd150
multiple: releases with relaxed core dep ( #21724 )
2024-05-15 19:29:35 +00:00
Erick Friis
c77d2f2b06
multiple: core 0.2 nonbreaking dep, check_diff community->langchain dep ( #21646 )
...
0.2 is not a breaking release for core (but it is for langchain and
community)
To keep the core+langchain+community packages in sync at 0.2, we will
relax deps throughout the ecosystem to tolerate `langchain-core` 0.2
2024-05-13 19:50:36 -07:00
Bagatur
54e9271504
anthropic[patch]: fix msg mutation ( #20572 )
2024-04-17 15:47:19 -07:00
Bagatur
984e7e36c2
anthropic[patch]: Release 0.1.10 ( #20568 )
2024-04-17 14:05:42 -07:00
Bagatur
f74d5d642e
anthropic[patch]: bump to core 0.1.43 ( #20537 )
2024-04-16 22:47:07 +00:00
Bagatur
96d8769eae
anthropic[patch]: release 0.1.9, use tool calls if content is empty ( #20535 )
2024-04-16 15:27:29 -07:00
Erick Friis
e6806a08d4
multiple: standard chat model tests ( #20359 )
2024-04-11 18:23:13 -07:00
Bagatur
799714c629
release anthropic, fireworks, openai, groq, mistral ( #20333 )
2024-04-11 09:19:52 -07:00
Erick Friis
9eb6f538f0
infra, multiple: rc release versions ( #20252 )
2024-04-09 17:54:58 -07:00
Bagatur
e4046939d0
anthropic[patch]: Pre-release 0.1.8-rc.1 ( #20250 )
2024-04-10 00:23:10 +00:00
Bagatur
4b84c9b28c
anthropic[patch]: Release 0.1.7 ( #20240 )
2024-04-09 21:53:16 +00:00
Bagatur
1b7ed6071a
anthropic[patch]: Release 0.1.6 ( #20026 )
2024-04-04 14:29:50 -07:00
Bagatur
6860450e48
anthropic[patch]: use anthropic 0.23 ( #20022 )
2024-04-04 14:23:53 -07:00
Bagatur
86fdb79454
anthropic[patch]: bump core dep ( #20019 )
...
]
2024-04-04 13:28:23 -07:00
Bagatur
209de0a561
anthropic[minor]: tool use ( #20016 )
2024-04-04 13:22:48 -07:00
Erick Friis
aa7bce6b13
anthropic[patch]: release 0.1.4 ( #18822 )
2024-03-08 21:34:47 +00:00
Erick Friis
e169ee8863
anthropic[patch]: handle lists in function calling ( #18609 )
2024-03-05 14:19:40 -08:00
Erick Friis
4ac2cb4adc
anthropic[minor]: add tool calling ( #18554 )
2024-03-05 08:30:16 -08:00
Erick Friis
24f9c700f2
anthropic[minor]: claude 3 ( #18508 )
2024-03-04 15:03:51 +00:00
Erick Friis
3b5bdbfee8
anthropic[minor]: package move ( #17974 )
2024-02-25 21:57:26 -08:00
Erick Friis
bfaa8c3048
anthropic[patch]: de-beta anthropic messages, release 0.0.2 ( #17540 )
2024-02-14 10:31:45 -08:00