public static AiCommonConfig convertConfig(final AiRequestTransformerConfig aiRequestTransformerConfig) {
        AiCommonConfig aiCommonConfig = new AiCommonConfig();
        Optional.ofNullable(aiRequestTransformerConfig.getBaseUrl()).ifPresent(aiCommonConfig::setBaseUrl);
        Optional.ofNullable(aiRequestTransformerConfig.getProvider()).ifPresent(aiCommonConfig::setProvider);
        Optional.ofNullable(aiRequestTransformerConfig.getModel()).ifPresent(aiCommonConfig::setModel);
        Optional.ofNullable(aiRequestTransformerConfig.getApiKey()).ifPresent(aiCommonConfig::setApiKey);
        return aiCommonConfig;
    }
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/handler/AiRequestTransformerPluginHandler.java