updated server
readme to document the /health
endpoint too
This commit is contained in:
parent
8c67fb26ba
commit
2196fa64c4
1 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,10 @@ node index.js
|
|||
```
|
||||
|
||||
## API Endpoints
|
||||
- **GET** `/health`: Returns the current state of the server:
|
||||
- `{"status": "loading model"}` if the model is still being loaded.
|
||||
- `{"status": "error"}` if the model failed to load.
|
||||
- `{"status": "ok"}` if the model is successfully loaded and the server is ready for further requests mentioned below.
|
||||
|
||||
- **POST** `/completion`: Given a `prompt`, it returns the predicted completion.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue