Hello @JP
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.
The issue was caused by invalid version in the sample code generator, so I will escalate this issue to product team to correct it. Before it is fixed, please refer to below version list to use the correct version.
Supported versions
-
2023-03-15-preview
(retiring July 1, 2024) Swagger spec -
2023-05-15
Swagger spec -
2023-06-01-preview
Swagger spec -
2023-07-01-preview
(retiring July 1, 2024) Swagger spec -
2023-08-01-preview
(retiring July 1, 2024) Swagger spec -
2023-09-01-preview
(retiring July 1, 2024) Swagger spec -
2023-10-01-preview
Swagger spec -
2023-12-01-preview
(retiring July 1, 2024) (This version or greater required for Vision scenarios) Swagger spec -
2024-02-15-preview
Swagger spec -
2024-03-01-preview
Swagger spec -
2024-04-01-preview
Swagger spec -
2024-05-01-preview
Swagger spec -
2024-02-01
Swagger spec
Please refer to the document here - https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions
Thank you for your support.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.