Skip to content

Commit

Permalink
1337 -> 3928
Browse files Browse the repository at this point in the history
  • Loading branch information
irfanpena committed Sep 9, 2024
1 parent ba71e2b commit fb14521
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ CortexCPP has a REST API that runs at `localhost:3928`.
### Pull a Model
```bash
curl --request POST \
--url http://localhost:1337/v1/models/{model_id}/pull
--url http://localhost:3928/v1/models/{model_id}/pull
```

### Start a Model
```bash
curl --request POST \
--url http://localhost:1337/v1/models/{model_id}/start \
--url http://localhost:3928/v1/models/{model_id}/start \
--header 'Content-Type: application/json' \
--data '{
"prompt_template": "system\n{system_message}\nuser\n{prompt}\nassistant",
Expand All @@ -177,7 +177,7 @@ curl --request POST \

### Chat with a Model
```bash
curl http://localhost:1337/v1/chat/completions \
curl http://localhost:3928/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "",
Expand All @@ -203,7 +203,7 @@ curl http://localhost:1337/v1/chat/completions \
### Stop a Model
```bash
curl --request POST \
--url http://localhost:1337/v1/models/mistral/stop
--url http://localhost:3928/v1/models/mistral/stop
```


Expand Down

0 comments on commit fb14521

Please sign in to comment.