Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core[patch]: For now remove user warning #20321

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions libs/core/langchain_core/messages/ai.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import warnings

Check failure on line 1 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.8

Ruff (F401)

langchain_core/messages/ai.py:1:8: F401 `warnings` imported but unused

Check failure on line 1 in libs/core/langchain_core/messages/ai.py

View workflow job for this annotation

GitHub Actions / cd libs/core / make lint #3.11

Ruff (F401)

langchain_core/messages/ai.py:1:8: F401 `warnings` imported but unused
from typing import Any, Dict, List, Literal

from langchain_core.messages.base import (
Expand Down Expand Up @@ -57,12 +57,6 @@
or values.get("tool_call_chunks")
)
if raw_tool_calls and not tool_calls:
warnings.warn(
"New langchain packages are available that more efficiently handle "
"tool calling. Please upgrade your packages to versions that set "
"message tool calls. e.g., `pip install --upgrade langchain-anthropic"
"`, pip install--upgrade langchain-openai`, etc."
)
try:
if issubclass(cls, AIMessageChunk): # type: ignore
values["tool_call_chunks"] = default_tool_chunk_parser(
Expand Down