Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Aug 7, 2023
1 parent c274b3b commit b0023a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/imageGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ const generateImageFromText = async (line, outputPath) => {
})

const imageUrl = createImageResponse.data.data[0].url
// console.log('🖼️ Image URL:', imageUrl);
const imageResponse = await axios.get(imageUrl, {
responseType: 'arraybuffer',
})
Expand Down
5 changes: 2 additions & 3 deletions src/scriptGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const generateScriptForTopic = async (
openaiInstance = null,
) => {
try {
console.log(`📝 Generating script for topic: ${topic}\n`)
console.log(`📝 Generating script for a video about ${topic}\n`)

// Create OpenAI instance if not provided
openaiInstance =
Expand All @@ -25,8 +25,7 @@ const generateScriptForTopic = async (
messages: [
{
role: 'system',
content:
'You are a Markdown editor. Respond to all user queries in Markdown format, but only use headings (e.g., `# Heading`) and paragraphs.',
content: `You are a Markdown editor. Respond to all user queries in Markdown format, but only use headings (e.g., "# Heading") and relatively short paragraphs.`,
},
{
role: 'user',
Expand Down

0 comments on commit b0023a3

Please sign in to comment.