Simplify-Text
This app is a Teams message extension app which will simplify a text in the Teams conversation. The app is built using Teams Toolkit for Visual Studio Code and uses OpenAI's completions API to generate simplified text. It also uses the moderation API to check if the message violate OpenAI's content policy.
Command
Simplify it for me - To generate a simplified version of the message passed.
Prerequisites
- Node.js, supported versions: 18
- An M365 account. If you do not have M365 account, apply one from M365 developer program
- Teams Toolkit Visual Studio Code Extension version v4.2.4
- Open AI key
Debug
- From Visual Studio Code: Start debugging the project by hitting the
F5
key in Visual Studio Code. - Alternatively use the
Run and Debug Activity Panel
in Visual Studio Code and click theRun and Debug
green arrow button.
Test the app
- Clone repository
- Open project in VS Code
- Start a debug session to provision resources on first run
- Add the following variables to bot\src.env.teamsfx.local
- OPENAI_API_KEY=(your OpenAI key)
- Stop and start debug session for variables to take effect