Thank you for watching "Stop Deciding Alone with AI #Shorts." Below are the simplified prompts from the video. Feel free to copy, paste, and use them in your business.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // analyze-diff.js | |
| const fs = require('fs'); | |
| const OpenAI = require('openai'); | |
| const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }); | |
| (async () => { | |
| // 1) Read the diff file (can be replaced with the first argument) | |
| const diffPath = process.argv[2] || 'changes.diff'; | |
| const diff = fs.readFileSync(diffPath, 'utf8'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // analyze-diff.js | |
| const fs = require('fs'); | |
| const OpenAI = require('openai'); | |
| const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }); | |
| (async () => { | |
| // 1) diffファイルを読む(第1引数で差し替え可) | |
| const diffPath = process.argv[2] || 'changes.diff'; | |
| const diff = fs.readFileSync(diffPath, 'utf8'); |