Skip to content

Commit e4cd791

Browse files
author
liuhuiqi.7
committed
feat(vlm_for_e2e): rm e2e
Change-Id: I0191e16e1faf1dade0eae0e5934d0a0026c7eb14
1 parent 85a00f1 commit e4cd791

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

volcenginesdkarkruntime/resources/chat/completions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ def _process_messages(self, messages: Iterable[ChatCompletionMessageParam],
5757
if part["image_url"]["url"].startswith('data:'):
5858
part["image_url"]["url"] = f(part["image_url"]["url"])
5959
else:
60-
warnings.warn("end-to-end encryption is not supported for image url, "
60+
warnings.warn("encryption is not supported for image url, "
6161
"please use base64 image if you want encryption")
6262
else:
63-
raise TypeError("end-to-end encryption is not supported for content type {}".
63+
raise TypeError("encryption is not supported for content type {}".
6464
format(type(part)))
6565
else:
66-
raise TypeError("end-to-end encryption is not supported for content type {}".
66+
raise TypeError("encryption is not supported for content type {}".
6767
format(type(message.get('content'))))
6868

6969
def _encrypt(self, model: str, messages: Iterable[ChatCompletionMessageParam], extra_headers: Headers
@@ -195,13 +195,13 @@ def _process_messages(self, messages: Iterable[ChatCompletionMessageParam],
195195
if part["image_url"]["url"].startswith('data:'):
196196
part["image_url"]["url"] = f(part["image_url"]["url"])
197197
else:
198-
warnings.warn("end-to-end encryption is not supported for image url, "
198+
warnings.warn("encryption is not supported for image url, "
199199
"please use base64 image if you want encryption")
200200
else:
201-
raise TypeError("end-to-end encryption is not supported for content type {}".
201+
raise TypeError("encryption is not supported for content type {}".
202202
format(type(part)))
203203
else:
204-
raise TypeError("end-to-end encryption is not supported for content type {}".
204+
raise TypeError("encryption is not supported for content type {}".
205205
format(type(message.get('content'))))
206206

207207
def _encrypt(self, model: str, messages: Iterable[ChatCompletionMessageParam], extra_headers: Headers

0 commit comments

Comments
 (0)