From 3ed28886466ba63325d9e231f5ca93acdcc6cba2 Mon Sep 17 00:00:00 2001 From: mudler Date: Mon, 20 Mar 2023 23:26:29 +0100 Subject: [PATCH] Update README --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 28eb777..d5ee02e 100644 --- a/README.md +++ b/README.md @@ -63,18 +63,6 @@ The API takes takes the following arguments: | address | ADDRESS | :8080 | The address and port to listen on. | -And you'll see: -``` -┌───────────────────────────────────────────────────┐ -│ Fiber v2.42.0 │ -│ http://127.0.0.1:8080 │ -│ (bound on host 0.0.0.0 and port 8080) │ -│ │ -│ Handlers ............. 1 Processes ........... 1 │ -│ Prefork ....... Disabled PID ................. 1 │ -└───────────────────────────────────────────────────┘ -``` - Once the server is running, you can make requests to it using HTTP. For example, to generate text based on an instruction, you can send a POST request to the `/predict` endpoint with the instruction as the request body: ``` @@ -90,7 +78,19 @@ curl --location --request POST 'http://localhost:8080/predict' --header 'Content Example of starting the API with `docker`: ```bash -docker run -ti --rm quay.io/go-skynet/llama-cli:latest api +docker run -p 8080:8080 -ti --rm quay.io/go-skynet/llama-cli:latest api +``` + +And you'll see: +``` +┌───────────────────────────────────────────────────┐ +│ Fiber v2.42.0 │ +│ http://127.0.0.1:8080 │ +│ (bound on host 0.0.0.0 and port 8080) │ +│ │ +│ Handlers ............. 1 Processes ........... 1 │ +│ Prefork ....... Disabled PID ................. 1 │ +└───────────────────────────────────────────────────┘ ``` ### Golang client API