dsh-llm-error-classify: Display Gateway Errors as-is, No Longer Normalized by the UI into "Invalid API Key"
This article summarizes the DSH Web plugin `dsh-llm-error-classify`. In the `llm/stream` pipeline, it reclassifies 401/403 terminal failures—originally misidentified as `AUTH` errors by the `pi-ai` adapter—as `PROVIDER_ERROR`. This modification ensures the interface displays the sanitized raw error text from the provider, rather than the generic "Invalid API Key" message. **Installation:** Run `dsh plugin --profile web add github:lxl8182/dsh-llm-error-classify` and restart `dsh web`. **Features & Requirements:** * Zero dependencies; pure JavaScript. * Requires Node.js >= 22. * Licensed under MIT. **Use Cases:** The plugin facilitates troubleshooting of third-party gateway issues, including channel, quota, and permission verification. However, users should be aware of the limitations regarding credential sanitization and the process permissions required by the plugin.
Read More