Skip to content

Commit 252daf6

Browse files
guyroyselantiga
andauthored
AI.SCRIPTSET example doesn't work (#469)
AI.SCRIPTSET example has a key name of "myscript" and function name of "addtwo". AI.SCRIPTSET does not take a function name argument so the example is incorrect (and generates a syntax error). This pull request corrects the documentation. Co-authored-by: Luca Antiga <luca.antiga@orobix.com>
1 parent f7efe6b commit 252daf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def addtwo(a, b):
381381
It can be stored as a RedisAI script using the CPU device with [`redis-cli`](https://redis.io/topics/rediscli) as follows:
382382

383383
```
384-
$ cat addtwo.py | redis-cli -x AI.SCRIPTSET myscript addtwo CPU TAG myscript:v0.1 SOURCE
384+
$ cat addtwo.py | redis-cli -x AI.SCRIPTSET myscript CPU TAG myscript:v0.1 SOURCE
385385
OK
386386
```
387387

0 commit comments

Comments
 (0)