fix: kimi coding api key validation (#1477)
commit4827f4cda3ed74068b446250ab204db69f1cf7d0
authorKujtim Hoxha <kujtimii.h@gmail.com>
dateWed 19 Nov 2025, 16:41 (1 year ago)
parentf08e852
internal/config/config.go+4
@@ -635,6 +635,10 @@ func (c *ProviderConfig) TestConnection(resolver VariableResolver) error {
635635 baseURL = "https://api.anthropic.com/v1"
636636 }
637637 testURL = baseURL + "/models"
638+ // TODO: replace with const when catwalk is released
639+ if c.ID == "kimi-coding" {
640+ testURL = baseURL + "/v1/models"
641+ }
638642 headers["x-api-key"] = apiKey
639643 headers["anthropic-version"] = "2023-06-01"
640644 case catwalk.TypeGoogle: