From 3883ceefe2ebed547c2518cbe9f63e45c305b3ad Mon Sep 17 00:00:00 2001 From: Clawdbot Date: Mon, 16 Feb 2026 12:34:25 -0800 Subject: [PATCH] fix: convert periods to dashes for OpenRouter model slugs --- pkg/providers/http_provider.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/providers/http_provider.go b/pkg/providers/http_provider.go index 4cf2c6db2..9e612a3fb 100644 --- a/pkg/providers/http_provider.go +++ b/pkg/providers/http_provider.go @@ -61,6 +61,9 @@ func (p *HTTPProvider) Chat(ctx context.Context, messages []Message, tools []Too } } + // Convert periods to dashes for OpenRouter model slugs (e.g., glm-4.7 -> glm-4-7) + model = strings.ReplaceAll(model, ".", "-") + requestBody := map[string]interface{}{ "model": model, "messages": messages,