openfang icon indicating copy to clipboard operation
openfang copied to clipboard

Openrouter integration issue

Open ch0udry opened this issue 8 months ago • 1 comments

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

ch0udry avatar Mar 17 '26 16:03 ch0udry

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.

jaberjaber23 avatar Mar 18 '26 01:03 jaberjaber23