Update AGENTS.md (#14819)

This commit is contained in:
comfyanonymous 2026-07-07 18:36:13 -07:00 committed by GitHub
parent 51bf508a0b
commit 6880614319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@
- Do not add unnecessary `try`/`except` blocks. Use them for optional dependency, - Do not add unnecessary `try`/`except` blocks. Use them for optional dependency,
platform, or backend capability detection only when the program has a useful platform, or backend capability detection only when the program has a useful
fallback. Prefer specific exception types when changing new code. fallback. Prefer specific exception types when changing new code.
- If a library version is pinned in `requirements.txt`, do not add code to
ComfyUI to handle older versions of that library.
- Remove any workarounds for PyTorch versions that ComfyUI no longer officially - Remove any workarounds for PyTorch versions that ComfyUI no longer officially
supports. Deprecated workarounds include catching an exception and rerunning supports. Deprecated workarounds include catching an exception and rerunning
the same op with the input cast to float. If a workaround does not have a the same op with the input cast to float. If a workaround does not have a