From eecd4f9092dcfaa035e66e4572a3e8ceda9ff33e Mon Sep 17 00:00:00 2001 From: ishaansehgal99 Date: Mon, 6 Nov 2023 07:20:22 -0800 Subject: [PATCH] fix: change ip address --- presets/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/presets/README.md b/presets/README.md index 8b3a7bbf7..28ad1fc90 100644 --- a/presets/README.md +++ b/presets/README.md @@ -62,19 +62,19 @@ Replace ``, ``, and `` with yo Endpoint: ```/```
Method: GET
Purpose: Check if the server is running.
-Example: ```curl http://localhost:5000/``` +Example: ```curl http://:80/``` 2. Model Health Check
Endpoint: ```/healthz```
Method: GET
Purpose: Check if the model and GPU are properly initialized.
-Example: ```curl http://localhost:5000/healthz``` +Example: ```curl http://:80/healthz``` 3. Shutdown
Endpoint: ```/shutdown```
Method: POST
Purpose: Shutdown server and program processes.
-Example: ```curl -X POST http://localhost:5000/shutdown``` +Example: ```curl -X POST http://:80/shutdown``` 4. Complete Text
Endpoint: ```/generate```
@@ -95,7 +95,7 @@ curl -X POST \ "max_gen_len": 128 } }' \ - http://localhost:5000/generate + http://:80/generate ``` ### Llama-2-chat Interaction @@ -147,7 +147,7 @@ curl -X POST \ ] } }' \ - http://localhost:5000/chat + http://:80/chat ``` ``` curl -X POST \ @@ -176,7 +176,7 @@ curl -X POST \ } } }' \ - http://localhost:5000/chat + http://:80/chat ``` ``` curl -X POST \ @@ -197,7 +197,7 @@ curl -X POST \ ] } }' \ - http://localhost:5000/chat + http://:80/chat ``` ### Falcon Chat Interaction
@@ -207,7 +207,7 @@ Purpose: Facilitates chat-based text interactions.
Basic Example - Replace `YOUR_PROMPT_HERE` with your actual prompt: ``` -curl -X POST "http://localhost:5000/chat" -H "accept: application/json" -H "Content-Type: application/json" -d '{"prompt":"YOUR_PROMPT_HERE"}' +curl -X POST "http://:80/chat" -H "accept: application/json" -H "Content-Type: application/json" -d '{"prompt":"YOUR_PROMPT_HERE"}' ``` Advanced Example with Configurable Parameters: @@ -240,7 +240,7 @@ curl -X POST \ "forced_eos_token_id":null, "remove_invalid_values":null }' \ - "http://localhost:5000/chat" + "http://:80/chat" ``` ## Model Parameters