grabai-code-creator
Vscode extension, Base on Grab Ai, Simple way to create a new Storybook or Test file in your project
Looking for collaborators to help me maintain the project. Please contact me at zhang.kaili@grabtaxi.com
Requirements
Grabai Home page
Onboarding to GrabGPT API Developer Guide
Vscode Home page
Setup
Add Setting files
At first, you should create a new apiKey in: Onboarding to GrabGPT API
In your vscode editor folder, create a new file grabai-config.json in your project base folder, and add './grabai-config.json' to '.gitignore' file!
You can change the commands for createStorybook and createUnitTest, and the command will be send to GrabAI API.
Set the apiKey
Set the LLM Model Available GrabGPT models
The files should look like:
# grabai-config.json file
{
"command": {
"createStorybook": "create storybook file for this code, the file should be js type:",
"createUnitTest": "create Unit Test file for this code, the file should be js type, use Jest Please: "
},
"apiKey": "1243456XXXXXXX",
"model": "gpt-4o"
}
# .gitignore file
.grabai-config.json
!! Promise not to disclose the apikey to others !!
Actions
Right-click your destination file, click on the 'GrabAI ChatBot' menu, and then choose a submenu.
Waiting for a minute, vscode window will show success or failure messages.
Congratulations! New Storybook or UnitTest file had be created automatically in the file folder, and you can use them now!
Enjoy!