fix: keep TRUST_REMOTE_CODE=True for built-in models
The constant is the default for built-in models with known model cards, which are trusted. Custom models added via API already default to trust_remote_code=False in ModelCard.fetch_from_hf(). The CLI flag overrides custom models only. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
committed by
Evan Quiney
co-authored by
Claude Opus 4.6
parent
60cbe237ea
commit
0dde45aa1f
@@ -13,5 +13,6 @@ KV_CACHE_BITS: int | None = None
|
||||
|
||||
DEFAULT_TOP_LOGPROBS: int = 5
|
||||
|
||||
# Opt-in via --trust-remote-code CLI flag; default is False for security.
|
||||
TRUST_REMOTE_CODE: bool = False
|
||||
# True for built-in models with known model cards; custom models added via API default to False
|
||||
# and can be overridden with the --trust-remote-code CLI flag.
|
||||
TRUST_REMOTE_CODE: bool = True
|
||||
|
||||
Reference in New Issue
Block a user