Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.03k stars 1.19k forks source link

Reference to "listChatCompletions" should be "getChatCompletions" #28190

Closed PabloReyes closed 8 months ago

PabloReyes commented 8 months ago

Type of issue

Code doesn't work

Description

In the section "Generate Chatbot Response", the code sample makes a reference to client.listChatCompletions. The listChatCompletions method does not exists. It should be replaced by client.client.getChatCompletions.

Page URL

https://learn.microsoft.com/en-us/javascript/api/overview/azure/openai-readme?view=azure-node-preview

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-node/blob/main/docs-ref-services/preview/openai-readme.md

Document Version Independent Id

320f9d0d-6ca4-8c03-8fce-0142ee95c115

Article author

@azure-sdk

Metadata

deyaaeldeen commented 8 months ago

Hi @PabloReyes, thanks for opening this report. The link above refers to beta.7 which contains the listChatCompletions method. However, you're right that this link should refer to the most recent version instead which is beta.10. I am following up with the content team regarding this issue.

deyaaeldeen commented 8 months ago

Hi @PabloReyes, the docs webpage has been updated to point to beta.10 now. Please let me know if you have any other questions 😊