Ignore '<string>' filepath (#17330)

Signed-off-by: rzou <zou3519@gmail.com>
This commit is contained in:
Richard Zou 2025-04-28 22:23:29 -04:00 committed by GitHub
parent d6da8a8ff2
commit 165cb56329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -382,6 +382,10 @@ class VllmBackend:
hash_content = []
for filepath in forward_code_files:
hash_content.append(filepath)
if filepath == "<string>":
# This means the function was dynamically generated, with
# e.g. exec(). We can't actually check these.
continue
with open(filepath) as f:
hash_content.append(f.read())
import hashlib