Skip to content

Commit 9ccb8cd

Browse files
committed
chore: refactor pydantic v1 code
1 parent 6828868 commit 9ccb8cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/developer_guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ See the example below.
6767

6868
```python
6969
from langchain.tools import tool, BaseTool
70-
from langchain.pydantic_v1 import BaseModel, Field
70+
from pydantic import BaseModel, Field
7171
from typing import Type
7272
from myrobot import robot
7373

tests/messages/test_multimodal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
)
2727
from langchain_core.language_models.chat_models import BaseChatModel
2828
from langchain_core.messages import AIMessage, BaseMessage
29-
from langchain_core.pydantic_v1 import BaseModel, Field
3029
from langfuse.callback import CallbackHandler
30+
from pydantic import BaseModel, Field
3131
from pytest import FixtureRequest
3232

3333
from rai.messages import HumanMultimodalMessage

0 commit comments

Comments
 (0)