The bundled Xiaomi profile lacks build_api_kwargs_extras, so reasoning_effort was parsed from config but silently dropped. This user plugin overrides the profile with the missing method. Mapping: xhigh->high, high->high, medium->medium, low->low, none->omit
843 B
843 B
Xiaomi MiMo Provider Profile
Sends reasoning_effort as a top-level API parameter to the Xiaomi MiMo API.
What it fixes
The bundled Xiaomi provider profile in Hermes does not include a build_api_kwargs_extras method, so the reasoning_effort parameter from config is parsed but silently dropped. This plugin overrides that profile with the missing method.
Mapping
xhigh→high(MiMo API only accepts low/medium/high)high→highmedium→mediumlow→lownone/empty → omitted
Installation
Deployed as a user plugin to /opt/data/plugins/model-providers/xiaomi/. User plugins load after bundled ones with last-writer-wins, so this persists across container restarts without modifying the image.
Files
plugins/model-providers/xiaomi/__init__.py— Provider profile override