generative-ai-for-beginners
generative-ai-for-beginners copied to clipboard
feat: Lesson 7 - Building Chat Applications - TypeScript Sample
This PR is a TypeScript version of Lesson 07: Building Generative AI-Powered Chat Applications
How to run the example?
-
Create a
.env
file at the root of the application and include the information forAZURE_OPENAI_ENDPOINT
andAZURE_OPENAI_KEY
. There is a file named.env-sample
explaining how to create the.env
file. -
To install dependencies, navigate to
cd: `typescript/chat-completions-app
Then execute the command:
npm install
- After the necessary dependencies are installed in the application, open the terminal and run the command:
npm run build
- Finally, execute the command:
npm run start
- You will have the application running perfectly.
You can see in action in this gif below:
👋 Thanks for contributing @glaucia86! We will review the pull request and get back to you soon.