Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedTammaa authored Dec 20, 2024
2 parents e67f6bd + f0e858b commit 3b8a547
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"integer": "int",
"array": "List",
"object": "Dict",
"any": "any",
}


Expand Down Expand Up @@ -323,7 +324,7 @@ def convert_to_oci_tool(
if "description" in p_def
else "",
type=JSON_TO_PYTHON_TYPES.get(
p_def.get("type"), p_def.get("type")
p_def.get("type"), p_def.get("type", "any")
),
is_required="default" not in p_def,
)
Expand All @@ -342,7 +343,7 @@ def convert_to_oci_tool(
p_name: self.oci_tool_param(
description=p_def.get("description"),
type=JSON_TO_PYTHON_TYPES.get(
p_def.get("type"), p_def.get("type")
p_def.get("type"), p_def.get("type", "any")
),
is_required="default" not in p_def,
)
Expand All @@ -363,7 +364,7 @@ def convert_to_oci_tool(
p_name: self.oci_tool_param(
description=p_def.get("description"),
type=JSON_TO_PYTHON_TYPES.get(
p_def.get("type"), p_def.get("type")
p_def.get("type"), p_def.get("type", "any")
),
is_required=p_name in parameters.get("required", []),
)
Expand Down
6 changes: 3 additions & 3 deletions libs/core/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "langchain-core"
version = "0.3.27"
version = "0.3.28"
description = "Building applications with LLMs through composability"
authors = []
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions libs/langchain/tests/unit_tests/chat_models/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def test_configurable() -> None:
"request_timeout": None,
"max_retries": 2,
"presence_penalty": None,
"reasoning_effort": None,
"frequency_penalty": None,
"seed": None,
"logprobs": None,
Expand Down

0 comments on commit 3b8a547

Please sign in to comment.