From 12bae309751f46498a561ff67ab7441b9531b66d Mon Sep 17 00:00:00 2001 From: sukerberk1 Date: Tue, 31 Dec 2024 17:40:31 +0100 Subject: [PATCH 1/3] Change model to universal 4o mini --- generate/eleven.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From 65aedb8d0d0d5bee0a0668a7c5ca410c11595046 Mon Sep 17 00:00:00 2001 From: sukerberk1 Date: Tue, 31 Dec 2024 17:40:57 +0100 Subject: [PATCH 2/3] Fix for concurency issue --- generate/remotion.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From b9117239e67a29773783d61d0bfb12c166b381d6 Mon Sep 17 00:00:00 2001 From: sukerberk1 Date: Tue, 31 Dec 2024 17:41:48 +0100 Subject: [PATCH 3/3] Change dialogue transition count to 5 to support tier 1 openapi accounts --- generate/transcript.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'} ] } }`, }, {