Skip to content

Commit d17b570

Browse files
committed
Remove the deprecation warning logging in MODELRUN command
1 parent db9857c commit d17b570

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/redisai.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -565,16 +565,9 @@ int RedisAI_ModelScan_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
565565
*/
566566
int RedisAI_ModelRun_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
567567
if (IsEnterprise()) {
568-
RedisModule_Log(ctx, "warning",
569-
"AI.MODELRUN command is deprecated and cannot be used in "
570-
"enterprise cluster, use AI.MODELEXECUTE instead");
571568
return RedisModule_ReplyWithError(
572569
ctx, "ERR AI.MODELRUN command is deprecated and cannot be used in "
573570
"enterprise cluster, use AI.MODELEXECUTE instead");
574-
} else {
575-
RedisModule_Log(ctx, "warning",
576-
"AI.MODELRUN command is deprecated and will"
577-
" not be available in future version, you can use AI.MODELEXECUTE instead");
578571
}
579572
if (RedisModule_IsKeysPositionRequest(ctx)) {
580573
return RedisAI_ModelRun_IsKeysPositionRequest_ReportKeys(ctx, argv, argc);

0 commit comments

Comments
 (0)