Skip to content

Commit

Permalink
readme : indent commands under bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
pothitos authored Nov 13, 2024
1 parent 4c2aa34 commit 8dfee71
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions examples/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,29 +668,29 @@ See [OpenAI Embeddings API documentation](https://platform.openai.com/docs/api-r

- input as string

```shell
curl http://localhost:8080/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer no-key" \
-d '{
"input": "hello",
"model":"GPT-4",
"encoding_format": "float"
}'
```
```shell
curl http://localhost:8080/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer no-key" \
-d '{
"input": "hello",
"model":"GPT-4",
"encoding_format": "float"
}'
```

- `input` as string array

```shell
curl http://localhost:8080/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer no-key" \
-d '{
"input": ["hello", "world"],
"model":"GPT-4",
"encoding_format": "float"
}'
```
```shell
curl http://localhost:8080/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer no-key" \
-d '{
"input": ["hello", "world"],
"model":"GPT-4",
"encoding_format": "float"
}'
```

### GET `/slots`: Returns the current slots processing state

Expand Down

0 comments on commit 8dfee71

Please sign in to comment.