unpin pydantic (#9356)

This commit is contained in:
Bagatur 2023-08-17 01:55:46 -07:00 committed by GitHub
parent de8dfde7f7
commit 995ef8a7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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):

View File

@ -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.\"\"\"

View File

@ -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"

View File

@ -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"