summaryrefslogtreecommitdiff
path: root/examples/server/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server/README.md')
-rw-r--r--examples/server/README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/server/README.md b/examples/server/README.md
index d409e840..9ee62d06 100644
--- a/examples/server/README.md
+++ b/examples/server/README.md
@@ -176,6 +176,16 @@ node index.js
`content`: Set the text to process.
+ **POST** `/infill`: For code infilling. Takes a prefix and a suffix and returns the predicted completion as stream.
+
+ *Options:*
+
+ `input_prefix`: Set the prefix of the code to infill.
+
+ `input_suffix`: Set the suffix of the code to infill.
+
+ It also accepts all the options of `/completion` except `stream` and `prompt`.
+
## More examples
### Interactive mode