@@ -137,9 +137,6 @@ int RedisAI_TensorGet_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
137137 */
138138int RedisAI_ModelSet_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
139139
140- RedisModule_Log (ctx , "warning" ,
141- "AI.MODELSET command is deprecated and will"
142- " not be available in future version, you can use AI.MODELSTORE instead" );
143140 return ModelSetCommand (ctx , argv , argc );
144141}
145142
@@ -565,16 +562,9 @@ int RedisAI_ModelScan_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
565562 */
566563int RedisAI_ModelRun_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
567564 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" );
571565 return RedisModule_ReplyWithError (
572566 ctx , "ERR AI.MODELRUN command is deprecated and cannot be used in "
573567 "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" );
578568 }
579569 if (RedisModule_IsKeysPositionRequest (ctx )) {
580570 return RedisAI_ModelRun_IsKeysPositionRequest_ReportKeys (ctx , argv , argc );
@@ -711,9 +701,6 @@ int RedisAI_ScriptDel_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv
711701 * AI.SCRIPTSET script_key device [TAG tag] SOURCE script_source
712702 */
713703int RedisAI_ScriptSet_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
714- RedisModule_Log (ctx , "warning" ,
715- "AI.SCRIPTSET command is deprecated and will"
716- " not be available in future version, you can use AI.SCRIPTSTORE instead" );
717704 return ScriptSetCommand (ctx , argv , argc );
718705}
719706
@@ -960,16 +947,9 @@ int RedisAI_Config_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, i
960947 */
961948int RedisAI_DagRun_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
962949 if (IsEnterprise ()) {
963- RedisModule_Log (ctx , "warning" ,
964- "AI.DAGRUN command is deprecated and cannot be used in "
965- "enterprise cluster, use AI.DAGEXECUTE instead" );
966950 return RedisModule_ReplyWithError (
967951 ctx , "ERR AI.DAGRUN command is deprecated and cannot be used in "
968952 "enterprise cluster, use AI.DAGEXECUTE instead" );
969- } else {
970- RedisModule_Log (ctx , "warning" ,
971- "AI.DAGRUN command is deprecated and will"
972- " not be available in future version, you can use AI.DAGEXECUTE instead" );
973953 }
974954 if (RedisModule_IsKeysPositionRequest (ctx )) {
975955 return RedisAI_DagExecute_IsKeysPositionRequest_ReportKeys (ctx , argv , argc );
@@ -1005,16 +985,9 @@ int RedisAI_DagExecute_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **arg
1005985 */
1006986int RedisAI_DagRunRO_RedisCommand (RedisModuleCtx * ctx , RedisModuleString * * argv , int argc ) {
1007987 if (IsEnterprise ()) {
1008- RedisModule_Log (ctx , "warning" ,
1009- "AI.DAGRUN_RO command is deprecated and cannot be used in "
1010- "enterprise cluster, use AI.DAGEXECUTE_RO instead" );
1011988 return RedisModule_ReplyWithError (
1012989 ctx , "ERR AI.DAGRUN_RO command is deprecated and cannot be used in "
1013- "enterprise cluster, use AI.DAGEXECUTE instead" );
1014- } else {
1015- RedisModule_Log (ctx , "warning" ,
1016- "AI.DAGRUN_RO command is deprecated and will"
1017- " not be available in future version, you can use AI.DAGEXECUTE instead" );
990+ "enterprise cluster, use AI.DAGEXECUTE_RO instead" );
1018991 }
1019992 if (RedisModule_IsKeysPositionRequest (ctx )) {
1020993 return RedisAI_DagExecute_IsKeysPositionRequest_ReportKeys (ctx , argv , argc );
0 commit comments