mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
infra: specify python max version of 3.12 for some integration packages (#27740)
This commit is contained in:
parent
3b956b3a97
commit
88bfd60b03
19
.github/scripts/check_diff.py
vendored
19
.github/scripts/check_diff.py
vendored
@ -32,6 +32,21 @@ IGNORED_PARTNERS = [
|
|||||||
"huggingface",
|
"huggingface",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Cap python version at 3.12 for some packages with dependencies that are not yet
|
||||||
|
# compatible with python 3.13 (mostly hf tokenizers).
|
||||||
|
PY_312_MAX_PACKAGES = [
|
||||||
|
f"libs/partners/{integration}"
|
||||||
|
for integration in [
|
||||||
|
"anthropic",
|
||||||
|
"chroma",
|
||||||
|
"couchbase",
|
||||||
|
"huggingface",
|
||||||
|
"mistralai",
|
||||||
|
"nomic",
|
||||||
|
"qdrant",
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def all_package_dirs() -> Set[str]:
|
def all_package_dirs() -> Set[str]:
|
||||||
return {
|
return {
|
||||||
@ -117,9 +132,7 @@ def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]:
|
|||||||
# declare deps in funny way
|
# declare deps in funny way
|
||||||
py_versions = ["3.9", "3.11"]
|
py_versions = ["3.9", "3.11"]
|
||||||
|
|
||||||
elif dir_ == "libs/partners/huggingface":
|
elif dir_ in PY_312_MAX_PACKAGES:
|
||||||
# huggingface tokenizers doesn't support 3.13 yet
|
|
||||||
# because of pep517 builds
|
|
||||||
py_versions = ["3.9", "3.12"]
|
py_versions = ["3.9", "3.12"]
|
||||||
|
|
||||||
elif dir_ in ["libs/community", "libs/langchain"] and job == "extended-tests":
|
elif dir_ in ["libs/community", "libs/langchain"] and job == "extended-tests":
|
||||||
|
@ -212,7 +212,7 @@ def test__convert_dict_to_message_tool_call() -> None:
|
|||||||
InvalidToolCall(
|
InvalidToolCall(
|
||||||
name="GenerateUsername",
|
name="GenerateUsername",
|
||||||
args="oops",
|
args="oops",
|
||||||
error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)", # noqa: E501
|
error="Function GenerateUsername arguments:\n\noops\n\nare not valid JSON. Received JSONDecodeError Expecting value: line 1 column 1 (char 0)\nFor troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE", # noqa: E501
|
||||||
id="ssAbar4Dr",
|
id="ssAbar4Dr",
|
||||||
type="invalid_tool_call",
|
type="invalid_tool_call",
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user