diff --git a/pkg/providers/openai_compat/provider.go b/pkg/providers/openai_compat/provider.go index 697e58a23..be602f826 100644 --- a/pkg/providers/openai_compat/provider.go +++ b/pkg/providers/openai_compat/provider.go @@ -158,7 +158,7 @@ func (p *Provider) Chat( // Gemini and other providers reject unknown fields, so skip for non-OpenAI APIs. if cacheKey, ok := options["prompt_cache_key"].(string); ok && cacheKey != "" { if !strings.Contains(p.apiBase, "generativelanguage.googleapis.com") && - !strings.Contains(p.apiBase, "api.groq.com") { + !strings.Contains(p.apiBase, "api.groq.com") { requestBody["prompt_cache_key"] = cacheKey } }