chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-03-02 17:04:52 -06:00
parent fe5c02331b
commit 3de14a53c2
63 changed files with 168 additions and 117 deletions
+2 -4
View File
@@ -4424,8 +4424,7 @@ async def streaming_chat_response_handler(response, ctx):
code = sanitize_code(code)
if CODE_INTERPRETER_BLOCKED_MODULES:
blocking_code = textwrap.dedent(
f"""
blocking_code = textwrap.dedent(f"""
import builtins
BLOCKED_MODULES = {CODE_INTERPRETER_BLOCKED_MODULES}
@@ -4441,8 +4440,7 @@ async def streaming_chat_response_handler(response, ctx):
return _real_import(name, globals, locals, fromlist, level)
builtins.__import__ = restricted_import
"""
)
""")
code = blocking_code + "\n" + code
if (