@@ -381,7 +381,7 @@ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions?api-ver
381
381
{
382
382
"data" : [
383
383
{
384
- "id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " ,
384
+ "id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " ,
385
385
"choices" : [
386
386
{
387
387
"finish_reason" : null ,
@@ -409,7 +409,7 @@ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions?api-ver
409
409
"completion_tokens_details" : null ,
410
410
"prompt_tokens_details" : null
411
411
},
412
- "request_id" : " cd0334e8-7541-4ec2-bab7-49ae8cf3c87a " ,
412
+ "request_id" : " 0000aaaa-11bb-cccc-dd22-eeeeee333333 " ,
413
413
"seed" : -430976584126747957 ,
414
414
"top_p" : 1 ,
415
415
"temperature" : 1 ,
@@ -424,8 +424,8 @@ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions?api-ver
424
424
"has_more" : false ,
425
425
"object" : " list" ,
426
426
"total" : 1 ,
427
- "first_id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " ,
428
- "last_id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh "
427
+ "first_id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " ,
428
+ "last_id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u "
429
429
}
430
430
```
431
431
@@ -451,7 +451,7 @@ client = AzureOpenAI(
451
451
api_version = " 2025-02-01-preview"
452
452
)
453
453
454
- response = client.chat.completions.retrieve(" chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " )
454
+ response = client.chat.completions.retrieve(" chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " )
455
455
456
456
print (response.model_dump_json(indent = 2 ))
457
457
```
@@ -467,7 +467,7 @@ client = AzureOpenAI(
467
467
api_version = " 2025-02-01-preview"
468
468
)
469
469
470
- response = client.chat.completions.retrieve(" chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " )
470
+ response = client.chat.completions.retrieve(" chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " )
471
471
472
472
print (response.model_dump_json(indent = 2 ))
473
473
```
@@ -477,15 +477,15 @@ print(response.model_dump_json(indent=2))
477
477
### Microsoft Entra ID
478
478
479
479
``` bash
480
- curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh ? api-version=2025-02-01-preview \
480
+ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u ? api-version=2025-02-01-preview \
481
481
-H " Content-Type: application/json" \
482
482
-H " Authorization: Bearer $AZURE_OPENAI_AUTH_TOKEN " \
483
483
```
484
484
485
485
### API Key
486
486
487
487
``` bash
488
- curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh ? api-version=2025-02-01-preview \
488
+ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u ? api-version=2025-02-01-preview \
489
489
-H " Content-Type: application/json" \
490
490
-H " api-key: $AZURE_OPENAI_API_KEY " \
491
491
```
@@ -494,7 +494,7 @@ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmp
494
494
495
495
``` json
496
496
{
497
- "id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " ,
497
+ "id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " ,
498
498
"choices" : [
499
499
{
500
500
"finish_reason" : null ,
@@ -522,7 +522,7 @@ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmp
522
522
"completion_tokens_details" : null ,
523
523
"prompt_tokens_details" : null
524
524
},
525
- "request_id" : " cd0334e8-7541-4ec2-bab7-49ae8cf3c87a " ,
525
+ "request_id" : " 0000aaaa-11bb-cccc-dd22-eeeeee333333 " ,
526
526
"seed" : -430976584126747957 ,
527
527
"top_p" : 1 ,
528
528
"temperature" : 1 ,
@@ -561,7 +561,7 @@ client = AzureOpenAI(
561
561
api_version = " 2025-02-01-preview"
562
562
)
563
563
564
- response = client.chat.completions.messages.list(" chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " , limit = 2 )
564
+ response = client.chat.completions.messages.list(" chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " , limit = 2 )
565
565
566
566
print (response.model_dump_json(indent = 2 ))
567
567
```
@@ -577,7 +577,7 @@ client = AzureOpenAI(
577
577
api_version = " 2025-02-01-preview"
578
578
)
579
579
580
- response = client.chat.completions.messages.list(" chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " , limit = 2 )
580
+ response = client.chat.completions.messages.list(" chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " , limit = 2 )
581
581
582
582
print (response.model_dump_json(indent = 2 ))
583
583
```
@@ -587,15 +587,15 @@ print(response.model_dump_json(indent=2))
587
587
### Microsoft Entra ID
588
588
589
589
``` bash
590
- curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh /messages? api-version=2025-02-01-preview \
590
+ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u /messages? api-version=2025-02-01-preview \
591
591
-H " Content-Type: application/json" \
592
592
-H " Authorization: Bearer $AZURE_OPENAI_AUTH_TOKEN " \
593
593
```
594
594
595
595
### API Key
596
596
597
597
``` bash
598
- curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh /messages? api-version=2025-02-01-preview \
598
+ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u /messages? api-version=2025-02-01-preview \
599
599
-H " Content-Type: application/json" \
600
600
-H " api-key: $AZURE_OPENAI_API_KEY " \
601
601
```
@@ -612,7 +612,7 @@ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmp
612
612
"audio" : null ,
613
613
"function_call" : null ,
614
614
"tool_calls" : null ,
615
- "id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh -0"
615
+ "id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u -0"
616
616
},
617
617
{
618
618
"content" : " Ensemble methods combine multiple machine learning models to create a more robust and accurate predictor. Common techniques include bagging (training models on random subsets of data), boosting (sequentially training models to correct previous errors), and stacking (using a meta-model to combine base model predictions). Random Forests, a popular bagging method, create multiple decision trees using random feature subsets. Gradient Boosting builds trees sequentially, with each tree focusing on correcting the errors of previous trees. These methods often achieve better performance than single models by reducing overfitting and variance while capturing different aspects of the data." ,
@@ -621,14 +621,14 @@ curl https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmp
621
621
"audio" : null ,
622
622
"function_call" : null ,
623
623
"tool_calls" : null ,
624
- "id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh -1"
624
+ "id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u -1"
625
625
}
626
626
],
627
627
"has_more" : false ,
628
628
"object" : " list" ,
629
629
"total" : 2 ,
630
- "first_id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh -0" ,
631
- "last_id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh -1"
630
+ "first_id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u -0" ,
631
+ "last_id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u -1"
632
632
}
633
633
```
634
634
@@ -655,7 +655,7 @@ client = AzureOpenAI(
655
655
)
656
656
657
657
response = client.chat.completions.update(
658
- " chatcmpl-B4g4TYatiSBUZbl5Uv938zXpYBqKL " ,
658
+ " chatcmpl-C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w " ,
659
659
metadata = {" fizz" : " buzz" }
660
660
)
661
661
@@ -674,7 +674,7 @@ client = AzureOpenAI(
674
674
)
675
675
676
676
response = client.chat.completions.update(
677
- " chatcmpl-B4g4TYatiSBUZbl5Uv938zXpYBqKL " ,
677
+ " chatcmpl-C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w " ,
678
678
metadata = {" fizz" : " buzz" }
679
679
)
680
680
@@ -686,7 +686,7 @@ print(response.model_dump_json(indent=2))
686
686
### Microsoft Entra ID
687
687
688
688
``` bash
689
- curl -X https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh ? api-version=2025-02-01-preview \
689
+ curl -X https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u ? api-version=2025-02-01-preview \
690
690
-H " Content-Type: application/json" \
691
691
-H " Authorization: Bearer $AZURE_OPENAI_AUTH_TOKEN "
692
692
-d ' {
@@ -699,7 +699,7 @@ curl -X https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chat
699
699
### API Key
700
700
701
701
``` bash
702
- curl -X https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh ? api-version=2025-02-01-preview \
702
+ curl -X https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u ? api-version=2025-02-01-preview \
703
703
-H " Content-Type: application/json" \
704
704
-H " api-key: $AZURE_OPENAI_API_KEY "
705
705
-d ' {
@@ -712,7 +712,7 @@ curl -X https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chat
712
712
# [ Output] ( #tab/output )
713
713
714
714
``` json
715
- "id" : " chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " ,
715
+ "id" : " chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " ,
716
716
"choices" : [
717
717
{
718
718
"finish_reason" : null ,
@@ -740,7 +740,7 @@ curl -X https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chat
740
740
"completion_tokens_details" : null ,
741
741
"prompt_tokens_details" : null
742
742
},
743
- "request_id" : " cd0334e8-7541-4ec2-bab7-49ae8cf3c87a " ,
743
+ "request_id" : " 0000aaaa-11bb-cccc-dd22-eeeeee333333 " ,
744
744
"seed" : -430976584126747957 ,
745
745
"top_p" : 1 ,
746
746
"temperature" : 1 ,
@@ -778,7 +778,7 @@ client = AzureOpenAI(
778
778
api_version = " 2025-02-01-preview"
779
779
)
780
780
781
- response = client.chat.completions.delete(" chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " )
781
+ response = client.chat.completions.delete(" chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " )
782
782
783
783
print (response.model_dump_json(indent = 2 ))
784
784
@@ -795,31 +795,31 @@ client = AzureOpenAI(
795
795
api_version = " 2025-02-01-preview"
796
796
)
797
797
798
- response = client.chat.completions.delete(" chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh " )
798
+ response = client.chat.completions.delete(" chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u " )
799
799
800
800
print (response.model_dump_json(indent = 2 ))
801
801
```
802
802
803
803
# [ REST API] ( #tab/rest-api )
804
804
805
805
``` bash
806
- curl -X DELETE -D - https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh ? api-version=2025-02-01-preview \
806
+ curl -X DELETE -D - https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u ? api-version=2025-02-01-preview \
807
807
-H " Content-Type: application/json" \
808
808
-H " Authorization: Bearer $AZURE_OPENAI_AUTH_TOKEN "
809
809
```
810
810
811
811
### API Key
812
812
813
813
``` bash
814
- curl -X DELETE -D - https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-B4eEKDztBNE2XH9bWB8AMQh2hO3Sh ? api-version=2025-02-01-preview \
814
+ curl -X DELETE -D - https://YOUR-RESOURCE-NAME.openai.azure.com/openai/chat/completions/chatcmpl-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u ? api-version=2025-02-01-preview \
815
815
-H " Content-Type: application/json" \
816
816
-H " api-key: $AZURE_OPENAI_API_KEY "
817
817
```
818
818
819
819
# [ Output] ( #tab/output )
820
820
821
821
``` json
822
- " id" • "chatcmp1-B4eEKDztBNE2XH9bWB8AMQh2h03Sh ",
822
+ " id" • "chatcmp1-A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u ",
823
823
"deleted" : true ,
824
824
"object" : " chat. completion. deleted"
825
825
```
0 commit comments