Skip to content

Commit b43ab35

Browse files
Update docs/source/en/quick_tour.md
Co-authored-by: Alvaro Bartolome <[email protected]>
1 parent bde464f commit b43ab35

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/source/en/quick_tour.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ response = client.embeddings.create(
9393
print(response.data[0].embedding)
9494
```
9595

96+
Alternatively, you can also send the request with cURL as follows:
97+
98+
```bash
99+
curl http://localhost/v1/embeddings \
100+
-H "Content-Type: application/json" \
101+
-d '{
102+
"input": "What is Deep Learning?",
103+
"model": "text-embeddings-inference",
104+
"encoding_format": "float"
105+
}'
106+
``
107+
96108
Alternatively, you can also send the request with cURL as follows:
97109
```bash
98110
curl http://localhost:8080/v1/embeddings \

0 commit comments

Comments
 (0)