mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-26 13:59:49 +00:00
fmt
This commit is contained in:
@@ -805,7 +805,7 @@ class ChatFireworks(BaseChatModel):
|
||||
from typing import Optional
|
||||
|
||||
from langchain_fireworks import ChatFireworks
|
||||
from langchain_core.pydantic_v1 import BaseModel, Field
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class AnswerWithJustification(BaseModel):
|
||||
@@ -836,7 +836,7 @@ class ChatFireworks(BaseChatModel):
|
||||
.. code-block:: python
|
||||
|
||||
from langchain_fireworks import ChatFireworks
|
||||
from langchain_core.pydantic_v1 import BaseModel
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class AnswerWithJustification(BaseModel):
|
||||
@@ -923,7 +923,7 @@ class ChatFireworks(BaseChatModel):
|
||||
.. code-block::
|
||||
|
||||
from langchain_fireworks import ChatFireworks
|
||||
from langchain_core.pydantic_v1 import BaseModel
|
||||
from pydantic import BaseModel
|
||||
|
||||
class AnswerWithJustification(BaseModel):
|
||||
answer: str
|
||||
|
@@ -20,8 +20,8 @@ result=$(git -C "$repository_path" grep -E '^import pydantic|^from pydantic')
|
||||
if [ -n "$result" ]; then
|
||||
echo "ERROR: The following lines need to be updated:"
|
||||
echo "$result"
|
||||
echo "Please replace the code with an import from langchain_core.pydantic_v1."
|
||||
echo "Please replace the code with an import from pydantic."
|
||||
echo "For example, replace 'from pydantic import BaseModel'"
|
||||
echo "with 'from langchain_core.pydantic_v1 import BaseModel'"
|
||||
echo "with 'from pydantic import BaseModel'"
|
||||
exit 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user