generative-ai-for-beginners icon indicating copy to clipboard operation
generative-ai-for-beginners copied to clipboard

feat: Lesson 7 - Building Chat Applications - TypeScript Sample

Open glaucia86 opened this issue 1 year ago • 1 comments

This PR is a TypeScript version of Lesson 07: Building Generative AI-Powered Chat Applications

How to run the example?

  1. Create a .env file at the root of the application and include the information for AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_KEY. There is a file named .env-sample explaining how to create the .env file.

  2. To install dependencies, navigate to

cd: `typescript/chat-completions-app

Then execute the command:

npm install

  1. After the necessary dependencies are installed in the application, open the terminal and run the command:

npm run build

  1. Finally, execute the command:

npm run start

  1. You will have the application running perfectly.

You can see in action in this gif below:

chat-completion-lesson-07

glaucia86 avatar Jan 10 '24 20:01 glaucia86

👋 Thanks for contributing @glaucia86! We will review the pull request and get back to you soon.

github-actions[bot] avatar Jan 10 '24 20:01 github-actions[bot]