private JsonNode headersToJson(final HttpHeaders headers) {
        ObjectNode headersNode = objectMapper.createObjectNode();
        for (Map.Entry<String, List<String>> entry : headers.entrySet()) {
            String joinedValues = String.join(",", entry.getValue());
            headersNode.put(entry.getKey(), joinedValues);
        }
        return headersNode;
    }
headersToJson.

@param headers headers
@return headersJsonNode
shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-request-transformer/src/main/java/org/apache/shenyu/plugin/ai/transformer/request/template/AiRequestTransformerTemplate.java