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