ccurme
001cf99253
pinecone[patch]: add support for python 3.13 ( #29737 )
2025-02-11 11:20:21 -08:00
ccurme
d172984c91
infra: migrate to uv ( #29566 )
2025-02-06 13:36:26 -05:00
Erick Friis
a2ed796aa6
infra: run doc lint on root pyproject change ( #29350 )
2025-01-22 03:22:13 +00:00
ccurme
d9c51b71c4
infra[patch]: drop prompty from core dependents ( #29068 )
2025-01-07 11:01:29 -05:00
Erick Friis
66f819c59e
infra: run cli tests on test changes ( #28542 )
2024-12-05 13:09:25 -08:00
Erick Friis
43c35d19d4
cli: standard tests in cli, test that they run, skip vectorstore tests ( #28521 )
2024-12-05 00:38:32 -08:00
ccurme
a8b21afc08
qdrant[patch]: run python 3.13 in CI ( #28394 )
2024-11-27 12:22:17 -05:00
ccurme
ee6fc3f3f6
nomic[patch]: run python 3.13 in CI ( #28393 )
2024-11-27 17:08:15 +00:00
ccurme
733a6ad328
mistral[patch]: run python 3.13 in CI ( #28392 )
2024-11-27 11:29:04 -05:00
ccurme
b9bf7fd797
couchbase[patch]: run python 3.13 in CI ( #28391 )
2024-11-27 11:28:21 -05:00
Greg Hinch
5141f25a20
community[patch]: support numpy2 ( #28184 )
...
Follows on from #27991 , updates the langchain-community package to
support numpy 2 versions
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-11-27 11:10:58 -05:00
ccurme
42b8ad067d
chroma[patch]: test python 3.13 in CI ( #28387 )
2024-11-27 15:02:40 +00:00
Greg Hinch
869c8f5879
langchain[patch]: support numpy 2 ( #28183 )
...
Follows on from #27991 , updates the langchain package to support numpy 2
versions
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com>
2024-11-26 11:20:02 -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
Erick Friis
a073c4c498
templates,docs: leave templates in v0.2 ( #27952 )
...
all template installs will now have to declare `--branch v0.2` to make
clear they aren't compatible with langchain 0.3 (most have a pydantic v1
setup). e.g.
```
langchain-cli app add pirate-speak --branch v0.2
```
2024-11-07 22:23:48 +00:00
Erick Friis
8ad7adad87
infra: build api docs from package listing ( #27774 )
2024-10-30 21:31:01 -07:00
ccurme
88bfd60b03
infra: specify python max version of 3.12 for some integration packages ( #27740 )
2024-10-30 12:24:48 -04:00
Erick Friis
583808a7b8
partners/huggingface: release 0.1.1 ( #27691 )
2024-10-28 13:39:38 -07:00
Erick Friis
247d6bb09d
infra: test doc imports 3.12 ( #27653 )
2024-10-25 13:23:06 -07:00
Erick Friis
600b7bdd61
all: test 3.13 ci ( #27197 )
...
Co-authored-by: Bagatur <baskaryan@gmail.com>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
2024-10-25 12:56:58 -07:00
Erick Friis
2ea5f60cc5
experimental: migrate to external repo ( #26879 )
...
security scanners can't distinguish monorepo sources from each other.
this will resolve issues for folks trying to use e.g. langchain-core but
getting security issues from experimental flagged!
2024-09-25 19:02:19 -07: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
ac922105ad
infra: rm ai21 from CI ( #25984 )
2024-09-03 11:47:27 -07:00
Erick Friis
3dc7d447aa
infra: reenable min version testing 2, ci ignore ai21 ( #25709 )
2024-08-23 23:28:42 +00:00
Erick Friis
dd2d094adc
infra: remove huggingface from ci tree ( #25559 )
2024-08-19 22:48:26 +00:00
Bagatur
fba65ba04f
infra: test core on py 3.9, 10, 11 ( #24951 )
2024-08-01 18:23:37 -07:00
Erick Friis
957b05b8d5
infra: py3.11 for community integration test compiling ( #24834 )
...
e.g.
https://github.com/langchain-ai/langchain/actions/runs/10167754785/job/28120861343?pr=24833
2024-07-30 18:43:10 +00:00
Erick Friis
d5b4b7e05c
infra: langchain max python 3.11 for resolution ( #24729 )
2024-07-26 21:17:11 +00:00
Erick Friis
3c3d3e9579
infra: community max python 3.11 for resolution ( #24728 )
2024-07-26 21:10:14 +00:00
Erick Friis
1d7a3ae7ce
infra: add test deps to add_dependents ( #24283 )
2024-07-15 15:48:53 -07:00
Erick Friis
9de562f747
infra: create individual jobs in check_diff, do max milvus testing in 3.11 ( #23829 )
...
pickup from #23721
2024-07-10 22:45:18 +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
255ad39ae3
infra: run CI on large diffs ( #23192 )
...
currently we skip CI on diffs >= 300 files. think we should just run it
on all packages instead
---------
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-06-19 19:30:56 +00:00
Bagatur
5ee6e22983
infra: test all dependents on any change ( #22994 )
2024-06-17 20:50:31 +00:00
Bagatur
50186da0a1
infra: rm unused # noqa violations ( #22049 )
...
Updating #21137
2024-05-22 15:21:08 -07: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
Erick Friis
726234eee5
infra: fix doc imports ci ( #20629 )
2024-04-18 23:42:03 +00:00
Erick Friis
77eba10f47
standard-tests: fix default fixtures ( #20520 )
2024-04-16 16:12:36 +00:00
Erick Friis
855ba46f80
standard-tests: a standard unit and integration test set ( #20182 )
...
just chat models for now
2024-04-09 12:43:00 -07:00
Erick Friis
f55b11fb73
infra: Revert run partner CI on core PRs ( #19733 )
...
Reverts parts of langchain-ai/langchain#19688
2024-03-28 20:45:59 +00:00
Erick Friis
8c2ed85a45
core[patch], infra: release 0.1.36, run partner CI on core PRs ( #19688 )
2024-03-28 08:55:10 -07:00
Erick Friis
74b2c0aa01
templates, cli: more security deps ( #19006 )
2024-03-12 20:48:56 -07:00
Erick Friis
6afb135baa
astradb: move to langchain-datastax repo ( #18354 )
2024-03-01 19:04:43 +00:00
Bagatur
5efb5c099f
text-splitters[minor], langchain[minor], community[patch], templates, docs: langchain-text-splitters 0.0.1 ( #18346 )
2024-02-29 18:33:21 -08:00
Erick Friis
c7d5ed6f5c
infra: tolerate partner package move in ci ( #18355 )
2024-02-29 17:49:28 -08:00
Erick Friis
dfd9787388
infra: ci dirs in wrong order ( #18340 )
2024-02-29 21:13:29 +00:00
Erick Friis
e566a3077e
infra: simplify and fix CI for docs-only changes ( #18058 )
...
Current success check will fail on docs-only changes
2024-02-23 16:39:08 -08:00
Erick Friis
afc1def49b
infra: ci end check, consolidation ( #17987 )
...
Consolidates CI checks into check_diffs.yml in order to properly
consolidate them into a single success status
2024-02-22 16:53:10 -08:00
Erick Friis
3a2eb6e12b
infra: add print rule to ruff ( #16221 )
...
Added noqa for existing prints. Can slowly remove / will prevent more
being intro'd
2024-02-09 16:13:30 -08:00
Erick Friis
36c0392dbe
infra: remove unnecessary tests on partner packages ( #16808 )
2024-01-30 16:01:47 -08:00