Skip to content

Commit 85d6a4b

Browse files
committed
Add missing api-version param
1 parent a4e84d8 commit 85d6a4b

File tree

8 files changed

+25
-25
lines changed

8 files changed

+25
-25
lines changed

articles/ai-services/agents/how-to/tools/azure-functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-1
332332
```
333333

334334
```console
335-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
335+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
336336
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
337337
-H "Content-Type: application/json" \
338338
-d '{
@@ -341,7 +341,7 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
341341
```
342342

343343
```console
344-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
344+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
345345
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
346346
```
347347

@@ -366,7 +366,7 @@ print("Deleted agent")
366366

367367
# [REST API](#tab/rest)
368368
```console
369-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
369+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
370370
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
371371
```
372372

articles/ai-services/agents/how-to/tools/bing-grounding.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ foreach (ThreadMessage threadMessage in messages)
443443
### Run the thread
444444
445445
```console
446-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
446+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
447447
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
448448
-H "Content-Type: application/json" \
449449
-d '{
@@ -454,14 +454,14 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
454454
### Retrieve the status of the run
455455
456456
```console
457-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
457+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
458458
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
459459
```
460460
461461
### Retrieve the agent response
462462
463463
```console
464-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
464+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
465465
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
466466
```
467467

articles/ai-services/agents/how-to/tools/code-interpreter.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-1
419419
### Run the thread
420420
421421
```console
422-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
422+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
423423
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
424424
-H "Content-Type: application/json" \
425425
-d '{
@@ -430,14 +430,14 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
430430
### Retrieve the status of the run
431431
432432
```console
433-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
433+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
434434
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
435435
```
436436
437437
### Retrieve the agent response
438438
439439
```console
440-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
440+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
441441
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
442442
```
443443
@@ -521,7 +521,7 @@ When Code Interpreter generates an image, you can look up the generated file in
521521
```
522522
And then you can download it by using:
523523
```console
524-
curl $AZURE_AI_AGENTS_ENDPOINT/files/assistant-abc123/content \
524+
curl $AZURE_AI_AGENTS_ENDPOINT/files/assistant-abc123/content?api-version=2024-12-01-preview \
525525
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
526526
--output image.png
527527
```

articles/ai-services/agents/how-to/tools/function-calling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ foreach (ThreadMessage threadMessage in messages)
485485
### Run the thread
486486
487487
```console
488-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
488+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
489489
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
490490
-H "Content-Type: application/json" \
491491
-d '{
@@ -496,14 +496,14 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
496496
### Retrieve the status of the run
497497
498498
```console
499-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
499+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
500500
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
501501
```
502502
503503
### Retrieve the agent response
504504
505505
```console
506-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
506+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
507507
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
508508
```
509509

articles/ai-services/agents/how-to/tools/openapi-spec.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-1
404404
### Run the thread
405405

406406
```console
407-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
407+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
408408
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
409409
-H "Content-Type: application/json" \
410410
-d '{
@@ -415,14 +415,14 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
415415
### Retrieve the status of the run
416416

417417
```console
418-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
418+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
419419
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
420420
```
421421

422422
### Retrieve the agent response
423423

424424
```console
425-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
425+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
426426
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
427427
```
428428

articles/ai-services/agents/includes/azure-search/code-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-1
407407
### Run the thread
408408
409409
```console
410-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
410+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
411411
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
412412
-H "Content-Type: application/json" \
413413
-d '{
@@ -418,14 +418,14 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
418418
### Retrieve the status of the run
419419
420420
```console
421-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
421+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
422422
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
423423
```
424424
425425
### Retrieve the agent response
426426
427427
```console
428-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
428+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
429429
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
430430
```
431431

articles/ai-services/agents/includes/file-search/upload-files-code-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ foreach (ThreadMessage threadMessage in messages)
412412
### Run the thread
413413
414414
```console
415-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
415+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
416416
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
417417
-H "Content-Type: application/json" \
418418
-d '{
@@ -423,14 +423,14 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
423423
### Retrieve the status of the run
424424
425425
```console
426-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
426+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
427427
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
428428
```
429429
430430
### Retrieve the agent response
431431
432432
```console
433-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
433+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
434434
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
435435
```
436436

articles/ai-services/agents/includes/quickstart-rest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-1
9797
### Run the thread
9898

9999
```console
100-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
100+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs?api-version=2024-12-01-preview \
101101
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN" \
102102
-H "Content-Type: application/json" \
103103
-d '{
@@ -108,13 +108,13 @@ curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs \
108108
### Retrieve the status of the run
109109

110110
```console
111-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123 \
111+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/runs/run_abc123?api-version=2024-12-01-preview \
112112
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
113113
```
114114

115115
### Retrieve the agent response
116116

117117
```console
118-
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages \
118+
curl $AZURE_AI_AGENTS_ENDPOINT/threads/thread_abc123/messages?api-version=2024-12-01-preview \
119119
-H "Authorization: Bearer $AZURE_AI_AGENTS_TOKEN"
120120
```

0 commit comments

Comments
 (0)