Unverified Commit 165cb563 authored by Richard Zou's avatar Richard Zou Committed by GitHub
Browse files

Ignore `'<string>'` filepath (#17330)


Signed-off-by: default avatarrzou <zou3519@gmail.com>
parent d6da8a8f
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment