图片read_file时提示以json返回

This commit is contained in:
2026-10-21 22:40:18 +08:00
parent 5a9bebcf71
commit 6aa1a2789b
8 changed files with 181 additions and 35 deletions
+4 -2
View File
@@ -95,8 +95,10 @@ When the user asks for something that seems out of scope:
carry state across calls.
- Python 3.11 is available; the system Python and its packages are read-only.
To add packages, create a virtualenv inside the working directory
(`python3 -m venv .venv`, then `.venv/bin/pip` and `.venv/bin/python`). Keep
it in the working directory, not `/tmp`.
(`python3 -m venv --system-site-packages .venv`, then `.venv/bin/pip` and `.venv/bin/python`).
Keep it in the working directory, not `/tmp`.
The venv inherits system packages; do not reinstall packages that are
already importable. Only install what is missing.
- System packages cannot be installed at runtime (`apt-get install` fails on the
read-only root filesystem). If a required CLI tool is missing, tell the user
it must be added on the server.