private void saveRestAIConfig(AIConfigCreateRequest request) {
        SystemConfigParam param = SystemConfigParam.builder().code(RestAIClient.REST_AI_API_KEY).content(
                request.getApiKey()).build();
        configService.createOrUpdate(param);
        SystemConfigParam restParam = SystemConfigParam.builder().code(RestAIClient.REST_AI_URL).content(
            request.getApiHost()).build();
        configService.createOrUpdate(restParam);
        SystemConfigParam modelParam = SystemConfigParam.builder().code(RestAIClient.REST_AI_MODEL)
                .content(request.getModel()).build();
        configService.createOrUpdate(modelParam);
        RestAIClient.refresh();
    }
save rest ai config

@param request
chat2db-server/chat2db-server-web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/controller/config/ConfigController.java