mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
Add option to blacklist modules in code interpreter
Co-authored-by: KG <kahghi@users.noreply.github.com>
This commit is contained in:
parent
5e35aab292
commit
6dd969129d
1 changed files with 10 additions and 0 deletions
|
|
@ -1711,6 +1711,16 @@ CODE_INTERPRETER_JUPYTER_TIMEOUT = PersistentConfig(
|
|||
),
|
||||
)
|
||||
|
||||
CODE_INTERPRETER_BLACKLISTED_MODULES = PersistentConfig(
|
||||
"CODE_INTERPRETER_BLACKLISTED_MODULES",
|
||||
"code_interpreter.blacklisted_modules",
|
||||
[
|
||||
library.strip()
|
||||
for library in os.environ.get("CODE_INTERPRETER_BLACKLISTED_MODULES", "").split(",")
|
||||
if library.strip()
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
DEFAULT_CODE_INTERPRETER_PROMPT = """
|
||||
#### Tools Available
|
||||
|
|
|
|||
Loading…
Reference in a new issue