Skip to content

Commit 455403f

Browse files
fpagnybene2k1RoRoJ
authored
Update using-embeddings-api.mdx (#4397)
* Update using-embeddings-api.mdx Fixing curl snippet (copy pasting in Terminal didn't work) * Update pages/generative-apis/api-cli/using-embeddings-api.mdx Co-authored-by: Rowena Jones <[email protected]> --------- Co-authored-by: Benedikt Rollik <[email protected]> Co-authored-by: Rowena Jones <[email protected]>
1 parent 13fe9ac commit 455403f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

pages/generative-apis/api-cli/using-embeddings-api.mdx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ Get a vector representation of a given input that can be easily consumed by mach
2020
**Request sample:**
2121

2222
```
23-
curl --request POST \
24-
--url https://api.scaleway.ai/v1/embeddings \
25-
--header 'Authorization: Bearer ${SCW_SECRET_KEY}' \
26-
--header 'Content-Type: application/json'
27-
--data '{
28-
"model": "sentence-t5-xxl",
29-
"input": "<string>"
23+
curl https://api.scaleway.ai/v1/embeddings \
24+
-H "Authorization: Bearer $SCW_SECRET_KEY" \
25+
-H "Content-Type: application/json" \
26+
-d '{
27+
"model": "bge-multilingual-gemma2",
28+
"input": "Here is a sentence to embed as a vector"
3029
}'
3130
```
3231

@@ -54,4 +53,4 @@ If you have a use case requiring one of these unsupported parameters, please [co
5453

5554
<Message type="note">
5655
Check our [Python code examples](/generative-apis/how-to/query-embedding-models/#querying-embedding-models-via-api) to query embedding models using Scaleway's Embeddings API.
57-
</Message>
56+
</Message>

0 commit comments

Comments
 (0)