Skip to content

Commit 9093beb

Browse files
authored
Update javascript.md
1 parent a47e3a3 commit 9093beb

File tree

1 file changed

+3
-3
lines changed
  • articles/ai-foundry/model-inference/includes/use-image-embeddings

1 file changed

+3
-3
lines changed

articles/ai-foundry/model-inference/includes/use-image-embeddings/javascript.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var image_path = "sample1.png";
9999
var image_data = fs.readFileSync(image_path);
100100
var image_data_base64 = Buffer.from(image_data).toString("base64");
101101

102-
var response = await client.path("images/embeddings").post({
102+
var response = await client.path("/images/embeddings").post({
103103
body: {
104104
input: [
105105
{
@@ -120,7 +120,7 @@ The following example shows how to create embeddings that are used to create an
120120

121121

122122
```javascript
123-
var response = await client.path("/embeddings").post({
123+
var response = await client.path("/images/embeddings").post({
124124
body: {
125125
input: [ { image: image_data_base64 } ],
126126
input_type: "document",
@@ -133,7 +133,7 @@ When you work on a query to retrieve such a document, you can use the following
133133

134134

135135
```javascript
136-
var response = await client.path("/embeddings").post({
136+
var response = await client.path("/images/embeddings").post({
137137
body: {
138138
input: [ { image: image_data_base64 } ],
139139
input_type: "query",

0 commit comments

Comments
 (0)