XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Allow uuid in pa providers

c0614032
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -2
Modified g4f/mcp/pa_provider.py +1 -2
@@ -57,7 +57,6 @@ Typical layout of a ``.pa.py`` file::
57 57 from __future__ import annotations
58 58
59 59 import io
60 import ast
61 60 import sys
62 61 import json
63 62 import hashlib
@@ -88,7 +87,7 @@ def is_hidden_file(path: str) -> bool:
88 87
89 88 #: Modules that are allowed inside the safe execution sandbox.
90 89 SAFE_MODULES: FrozenSet[str] = frozenset({
91 "__future__", "concurrent", "warnings", "urllib3", "urllib3.exceptions",
90 "__future__", "concurrent", "warnings", "urllib3", "urllib3.exceptions", "uuid",
92 91 # Math / numeric
93 92 "math", "cmath", "decimal", "fractions", "statistics", "random", "numbers",
94 93 # String / text