File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
volcenginesdkarkruntime/resources/chat Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,8 @@ def _decrypt(
151151 key , nonce , choice .message .content
152152 )
153153 except Exception :
154- pass
155- if not decrypt_validate (choice .message .content ):
154+ content = ''
155+ if content == '' or not decrypt_validate (choice .message .content ):
156156 content = aes_gcm_decrypt_base64_list (
157157 key , nonce , choice .message .content
158158 )
@@ -317,8 +317,8 @@ async def _decrypt(
317317 key , nonce , choice .message .content
318318 )
319319 except Exception :
320- pass
321- if not decrypt_validate (choice .message .content ):
320+ content = ''
321+ if content == '' or not decrypt_validate (choice .message .content ):
322322 content = aes_gcm_decrypt_base64_list (
323323 key , nonce , choice .message .content
324324 )
You can’t perform that action at this time.
0 commit comments