To use this plugin:
- Get an OpenAI API key
- paste it in an gpt-api/.env file with same format as gpt-api/.env.example
- run
npm install
- run
npm run dev
insidegpt-api/
- Open the local plugin with Figma desktop app, pointing it to the
manifest.json
file inside thegpt-api/dist
folder
ChatGPT not always returns valid code, you may need to retry a few times to get the actual code