You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paths should either be stored as absolute paths, or be resolved relative to the workspace root and not the current directory.
File /fast/erb/Programming/gptme/gptme/message.py:113, in Message._content_files_list(self, provider)
105 content.append(
106 {
107 "type": "text",
108 "text": f"![{f.name}]({f.name}):",
109 }
110 )
112 # read file
--> 113 data_bytes = f.read_bytes()
114 data = base64.b64encode(data_bytes).decode("utf-8")
116 # check that the file is not too large
117 # anthropic limit is 5MB, seems to measure the base64-encoded size instead of raw bytes
118 # TODO: use compression to reduce file size
119 # print(f"{len(data)=}")
File /usr/lib/python3.11/pathlib.py:1050, in Path.read_bytes(self)
1046 def read_bytes(self):
1047 """
1048 Open the file in bytes mode, read it, and close the file.
1049 """
-> 1050 with self.open(mode='rb') as f:
1051 return f.read()
File /usr/lib/python3.11/pathlib.py:1044, in Path.open(self, mode, buffering, encoding, errors, newline)
1042 if "b" not in mode:
1043 encoding = io.text_encoding(encoding)
-> 1044 return io.open(self, mode, buffering, encoding, errors, newline)
FileNotFoundError: [Errno 2] No such file or directory: 'media/profile-pic-draft1.jpg'
The text was updated successfully, but these errors were encountered:
Paths should either be stored as absolute paths, or be resolved relative to the workspace root and not the current directory.
The text was updated successfully, but these errors were encountered: