diff --git a/src/redisai.c b/src/redisai.c index f71628085..cc5c1a884 100644 --- a/src/redisai.c +++ b/src/redisai.c @@ -688,14 +688,22 @@ int RedisAI_ModelRun_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, // be picked up on the next round. We also need to signal when it's time to dispose // of the old model. // The key is having a single thread looping for execution + if (argc < 3) return RedisModule_WrongArity(ctx); + if (RedisModule_IsKeysPositionRequest(ctx)) { RedisModule_KeyAtPos(ctx, 1); + for (int i=2; i