Skip to content

Commit 74ebbc7

Browse files
committed
🪛 fix pydantic V2 schemas
1 parent 855366b commit 74ebbc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codeinterpreterapi/schema/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import asyncio
22

3-
from pydantic import BaseModel
3+
from langchain.pydantic_v1 import BaseModel
44

55

66
class File(BaseModel):
@@ -60,7 +60,7 @@ def get_image(self):
6060
img = Image.open(img_io)
6161

6262
# Convert image to RGB if it's not
63-
if img.mode not in ("RGB", "L"): # L is for greyscale images
63+
if img.mode not in ("RGB", "L"): # L is for grayscale images
6464
img = img.convert("RGB")
6565

6666
return img

codeinterpreterapi/schema/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pydantic import BaseModel
1+
from langchain.pydantic_v1 import BaseModel
22

33

44
class CodeInput(BaseModel):

0 commit comments

Comments
 (0)