@@ -59,12 +59,12 @@ def _process_messages(self, messages: Iterable[ChatCompletionMessageParam],
5959 if part ["image_url" ]["url" ].startswith ('data:' ):
6060 part ["image_url" ]["url" ] = f (part ["image_url" ]["url" ])
6161 else :
62- log .warning ("image url is not supported end-to-end encryption " )
62+ log .warning ("end-to-end encryption is not supported for image url " )
6363 else :
64- raise TypeError ("content type {} is not supported end-to-end encryption " .
64+ raise TypeError ("end-to-end encryption is not supported for content type {} " .
6565 format (type (part )))
6666 else :
67- raise TypeError ("content type {} is not supported end-to-end encryption " .
67+ raise TypeError ("end-to-end encryption is not supported for content type {} " .
6868 format (type (message .get ('content' ))))
6969
7070 def _encrypt (self , model : str , messages : Iterable [ChatCompletionMessageParam ], extra_headers : Headers
@@ -196,12 +196,12 @@ def _process_messages(self, messages: Iterable[ChatCompletionMessageParam],
196196 if part ["image_url" ]["url" ].startswith ('data:' ):
197197 part ["image_url" ]["url" ] = f (part ["image_url" ]["url" ])
198198 else :
199- log .warning ("image url is not supported end-to-end encryption " )
199+ log .warning ("end-to-end encryption is not supported for image url " )
200200 else :
201- raise TypeError ("content type {} is not supported end-to-end encryption " .
201+ raise TypeError ("end-to-end encryption is not supported for content type {} " .
202202 format (type (part )))
203203 else :
204- raise TypeError ("content type {} is not supported end-to-end encryption " .
204+ raise TypeError ("end-to-end 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