diff --git a/generate/eleven.mjs b/generate/eleven.mjs index e200790..ac54cc9 100644 --- a/generate/eleven.mjs +++ b/generate/eleven.mjs @@ -280,7 +280,7 @@ const imagePrompt = async (title) => { console.log('💭 Generating image prompt for:', title); try { const response = await openai.chat.completions.create({ - model: 'ft:gpt-3.5-turbo-1106:personal::8TEhcfKm', + model: 'gpt-4o-mini', messages: [{ role: 'user', content: title }], }); console.log('✅ Prompt generated:', response.choices[0]?.message.content); diff --git a/generate/remotion.config.ts b/generate/remotion.config.ts index 86f97cb..84b6b87 100644 --- a/generate/remotion.config.ts +++ b/generate/remotion.config.ts @@ -10,7 +10,7 @@ import { enableTailwind } from '@remotion/tailwind'; Config.setVideoImageFormat('jpeg'); Config.setOverwriteOutput(true); -Config.setConcurrency(8); +Config.setConcurrency(4); // Config.setChromiumMultiProcessOnLinux(true); // This template processes the whole audio file on each thread which is heavy. diff --git a/generate/transcript.mjs b/generate/transcript.mjs index a3af2a0..f7eff0c 100644 --- a/generate/transcript.mjs +++ b/generate/transcript.mjs @@ -8,6 +8,8 @@ const groq = new Groq({ apiKey: process.env.GROQ_API_KEY, }); +const dialogueTransitions = 5; + async function generateTranscript(topic, agentA, agentB, duration) { console.log('📝 Starting generateTranscript with params:', { topic, @@ -32,7 +34,7 @@ async function generateTranscript(topic, agentA, agentB, duration) { '_', ' ' )} offers a deep, analytical perspective. The dialogue should be engaging and include light humor, yet still provide meaningful insights into ${topic}. Limit the dialogue to a maximum of ${ - duration * 7 + duration * dialogueTransitions } exchanges, aiming for a concise transcript that would last between ${duration} minutes. The person attribute should either be ${agentA} or ${agentB}. The line attribute should be that character's line of dialogue. It should be risque and edgy, so as to be interesting to watch. I also need an asset description under the asset attribute which would be a relevant search query to find an image which should be relevant to the overall topic of the conversation. The asset descriptions shouldn't be vague, but a description of something that you think would be a good image to go along with the conversation. Specificity is key. And don't include a direct mention of a politician in assets, if for example, Trump is mentioned, don't use the word Trump in the asset description, but instead something like white male with blonde hair combover ya know. The JSON format WHICH MUST BE ADHERED TO ALWAYS is as follows: { transcript: { [ {'person': 'the exact value of ${agentA} or ${agentB} depending on who is talking', 'line': 'their line of conversation in the dialog', asset: 'relevant search query based on the current line'} ] } }`, }, {