mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
unpin pydantic (#9356)
This commit is contained in:
parent
de8dfde7f7
commit
995ef8a7fc
2
.github/workflows/langchain_ci.yml
vendored
2
.github/workflows/langchain_ci.yml
vendored
@ -24,5 +24,5 @@ jobs:
|
|||||||
./.github/workflows/_test.yml
|
./.github/workflows/_test.yml
|
||||||
with:
|
with:
|
||||||
working-directory: libs/langchain
|
working-directory: libs/langchain
|
||||||
test_type: '["core", "extended"]'
|
test_type: '["core", "extended", "core-pydantic-2"]'
|
||||||
secrets: inherit
|
secrets: inherit
|
@ -3,7 +3,7 @@ from typing import Any, Dict, List, Mapping, Optional, cast
|
|||||||
|
|
||||||
from langchain.callbacks.manager import CallbackManagerForLLMRun
|
from langchain.callbacks.manager import CallbackManagerForLLMRun
|
||||||
from langchain.llms.base import LLM
|
from langchain.llms.base import LLM
|
||||||
from pydantic import validator
|
from pydantic_v1 import validator
|
||||||
|
|
||||||
|
|
||||||
class FakeLLM(LLM):
|
class FakeLLM(LLM):
|
||||||
|
@ -230,7 +230,7 @@ def create_openai_fn_chain(
|
|||||||
from langchain.chat_models import ChatOpenAI
|
from langchain.chat_models import ChatOpenAI
|
||||||
from langchain.prompts import ChatPromptTemplate
|
from langchain.prompts import ChatPromptTemplate
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic_v1 import BaseModel, Field
|
||||||
|
|
||||||
|
|
||||||
class RecordPerson(BaseModel):
|
class RecordPerson(BaseModel):
|
||||||
@ -316,7 +316,7 @@ def create_structured_output_chain(
|
|||||||
from langchain.chat_models import ChatOpenAI
|
from langchain.chat_models import ChatOpenAI
|
||||||
from langchain.prompts import ChatPromptTemplate
|
from langchain.prompts import ChatPromptTemplate
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic_v1 import BaseModel, Field
|
||||||
|
|
||||||
class Dog(BaseModel):
|
class Dog(BaseModel):
|
||||||
\"\"\"Identifying information about a dog.\"\"\"
|
\"\"\"Identifying information about a dog.\"\"\"
|
||||||
|
2
libs/langchain/poetry.lock
generated
2
libs/langchain/poetry.lock
generated
@ -10487,4 +10487,4 @@ text-helpers = ["chardet"]
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = ">=3.8.1,<4.0"
|
python-versions = ">=3.8.1,<4.0"
|
||||||
content-hash = "0c6f0b48849161928ab5df69f818779d6f5c58760cf967448a8785c938a23b57"
|
content-hash = "594d1f6ea7a3e00f0ab6c74cab8b75245d112a84635af440df7ab1242d464140"
|
||||||
|
@ -12,7 +12,7 @@ langchain-server = "langchain.server:main"
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.8.1,<4.0"
|
python = ">=3.8.1,<4.0"
|
||||||
pydantic = "^1"
|
pydantic = ">=1,<3"
|
||||||
SQLAlchemy = ">=1.4,<3"
|
SQLAlchemy = ">=1.4,<3"
|
||||||
requests = "^2"
|
requests = "^2"
|
||||||
PyYAML = ">=5.3"
|
PyYAML = ">=5.3"
|
||||||
|
Loading…
Reference in New Issue
Block a user