public static AiModel createAiModel(final AiModelProviderEnum provider) {
        if (Objects.isNull(provider)) {
            throw new IllegalArgumentException("not supported provider");
        }
        return switch (provider) {
            case OPEN_AI, DEEP_SEEK, ALIYUN, OPEN_API, MOONSHOT -> new OpenAI();
        };
    }
Create ai model instance.

@param provider the provider
@return the ai model provider
shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-common/src/main/java/org/apache/shenyu/plugin/ai/common/strategy/AiModelFactory.java