We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 855366b commit 74ebbc7Copy full SHA for 74ebbc7
codeinterpreterapi/schema/file.py
@@ -1,6 +1,6 @@
1
import asyncio
2
3
-from pydantic import BaseModel
+from langchain.pydantic_v1 import BaseModel
4
5
6
class File(BaseModel):
@@ -60,7 +60,7 @@ def get_image(self):
60
img = Image.open(img_io)
61
62
# Convert image to RGB if it's not
63
- if img.mode not in ("RGB", "L"): # L is for greyscale images
+ if img.mode not in ("RGB", "L"): # L is for grayscale images
64
img = img.convert("RGB")
65
66
return img
codeinterpreterapi/schema/input.py
@@ -1,4 +1,4 @@
class CodeInput(BaseModel):
0 commit comments