Skip to content

Conversation

@DanWahlin
Copy link
Contributor

This pull request updates the JavaScript QuickStart guide and modifies the chatCompletion function in quickstart.js to enhance clarity and usability. The most significant changes include restructuring the setup instructions in the README file and improving the initialization process for the Azure OpenAI client in the code.

Documentation Updates:

  • Improved setup instructions in README.md: The "Set up your environment" section now includes detailed steps for installing Node.js, signing in with the Azure CLI, configuring the .env file, and installing dependencies. This replaces the previous brief instructions and provides links to required resources.

Code Enhancements:

  • Refactored chatCompletion function in quickstart.js: Added comments to clarify the steps for retrieving environment variables, creating the Azure OpenAI client, and generating a chat completion. This improves readability and helps developers understand the flow of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant