From 4827f4cda3ed74068b446250ab204db69f1cf7d0 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Wed, 19 Nov 2025 16:41:41 +0100 Subject: [PATCH] fix: kimi coding api key validation (#1477) --- internal/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index f6bd38d8d93d5bab3fe6bb7b2c16f524b6ffdf87..4b441b0b18563814ca58b9d48cf2e8ffbd7e782f 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -635,6 +635,10 @@ func (c *ProviderConfig) TestConnection(resolver VariableResolver) error { baseURL = "https://api.anthropic.com/v1" } testURL = baseURL + "/models" + // TODO: replace with const when catwalk is released + if c.ID == "kimi-coding" { + testURL = baseURL + "/v1/models" + } headers["x-api-key"] = apiKey headers["anthropic-version"] = "2023-06-01" case catwalk.TypeGoogle: