Openrouter integration issue
Description
always have this problem on open router when ever configure model via openrouter
Error: Request failed: {"error":{"message":"healer-alpha is not a valid model ID","code":400},"user_id":"user_39ktqAYU0JZKhG1fder8F40HVSC"}
Error: Request failed: {"error":{"message":"hunter-alpha is not a valid model ID","code":400},"user_id":"user_39ktqAYU0JZKhG1fder8F40HVSC"}
it didnt pick openrouter/hunter-alpha as a model . and this is suggested on openrouter syntax for model
Expected Behavior
should work with these kinda model provider syntax
Steps to Reproduce
??
OpenFang Version
latest
Operating System
Linux (x86_64)
Logs / Screenshots
No response
Fixed in the latest build. The issue was that fallback model names weren't stripped of the provider prefix before being sent to the API. strip_provider_prefix() is now applied to all fallback model chains. Pull the latest main and rebuild.