private static Mono<ServerWebExchange> convertHeader(final ServerWebExchange exchange, final String aiResponse) {
        HttpHeaders newHeaders = extractHeadersFromAiResponse(aiResponse);
        exchange.getRequest().mutate().headers(httpHeaders -> {
            httpHeaders.clear();
            httpHeaders.putAll(newHeaders);
        }).build();
        return Mono.just(exchange);
    }
this is ai request transformer plugin.
shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-request-transformer/src/main/java/org/apache/shenyu/plugin/ai/transformer/request/AiRequestTransformerPlugin.java