on main help sign in
refactor: check for id instead of name
commit65d8269dba1df14b856577cb0ab762659a207492 authorAndrey Nering <andreynering@users.noreply.github.com> dateMon 8 Sep 2025, 16:38 (1 year ago) parent913ea55
1 file changed+1−1
internal/config/config.go+1−1
internal/config/config.go+1−1
@@ -460,7 +460,7 @@ func (c *ProviderConfig) TestConnection(resolver VariableResolver) error {
460460 if baseURL == "" {
461461 baseURL = "https://api.openai.com/v1"
462462 }
463− if c.Name == "OpenRouter" {
463+ if c.ID == "openrouter" {
464464 testURL = baseURL + "/credits"
465465 } else {
466466 testURL = baseURL + "/models"