Add embedded Hugging Face token fallback

This commit is contained in:
CoolBoy
2026-07-10 01:02:25 +08:00
parent 597d3b1d86
commit 5460fbd108
4 changed files with 10 additions and 6 deletions

View File

@@ -15,12 +15,13 @@ submission poller in a child process.
## Runtime Environment
The image includes a single-account submission token fallback for the agent
platform. Environment variables can override it without rebuilding the image.
The image includes single-account ModelHub and Hugging Face token fallbacks for
the agent platform. Environment variables can override them without rebuilding
the image.
- `MODELHUB_XC_TOKEN`, `XC_TOKEN`, or `MODELHUB_TOKEN` for ModelHub API authentication
- `MODELHUB_JWT_TOKEN` or `JWT_TOKEN` can be used instead when the platform provides a JWT
- `HF_TOKEN` optional, but recommended for Hugging Face API limits
- `HF_TOKEN` optional override for the embedded Hugging Face fallback token
- `STRATEGY_ID` is expected to be injected by the ModelHub agent platform and is attached to submissions for strategy attribution; it is not an API authentication token
Optional tuning: