At first, If you are executing the command for the first time, the extension will automatically create a new file grabai_config In your Home Base folder(User/[Username]/) ,
You can change the grabai_config file, set the apiKey value you just create in step 2 to the grabai_config.apiKey
You can also change this file commands for createStorybook and createUnitTest, and the command will be send to GrabAI API.
The default LLM Model is gpt-4o, you can change the keyName model to the values in Available GrabGPT models
The grabai_config file should looks like:
# grabai_config
{
"HelpText": "you can get your own apiKey here: https://helix.engtools.net/docs/default/component/integrating_llm_apps_with_grabgpt_developer_guide/getting-started-on-grab-gpt-portal-app",
"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: "
},
"model": "gpt-4o",
"apiKey": "Your API Key",
}
!! 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!