From ed28b71e8706bfa0269480b61cd933726ef97e97 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Fri, 9 Jan 2026 08:21:13 +0800 Subject: [PATCH] refactor(amp): remove duplicate comments in response rewriter --- internal/api/modules/amp/response_rewriter.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/api/modules/amp/response_rewriter.go b/internal/api/modules/amp/response_rewriter.go index 35888116..57e4922a 100644 --- a/internal/api/modules/amp/response_rewriter.go +++ b/internal/api/modules/amp/response_rewriter.go @@ -71,8 +71,6 @@ var modelFieldPaths = []string{"model", "modelVersion", "response.modelVersion", // rewriteModelInResponse replaces all occurrences of the mapped model with the original model in JSON // It also suppresses "thinking" blocks if "tool_use" is present to ensure Amp client compatibility func (rw *ResponseRewriter) rewriteModelInResponse(data []byte) []byte { - // 1. Amp Compatibility: Suppress thinking blocks if tool use is detected - // The Amp client struggles when both thinking and tool_use blocks are present // 1. Amp Compatibility: Suppress thinking blocks if tool use is detected // The Amp client struggles when both thinking and tool_use blocks are present if gjson.GetBytes(data, `content.#(type=="tool_use")`).Exists() {