Updated generatedCopy to generatedCopy.text (#2247)

I believe the generatedCopy is the object that the AI SDK returns and we want to pass the text of the object rather in our template literal.
This commit is contained in:
Matthieu Mordrel
2025-07-14 16:58:55 +02:00
committed by GitHub
parent b78b3dceb2
commit 8690878a86
@@ -80,7 +80,7 @@ export const generateAndTranslateTask = task({
},
{
role: "user",
content: `Translate the following marketing copy to ${payload.targetLanguage}, maintaining the same tone and marketing impact:\n\n${generatedCopy}`,
content: `Translate the following marketing copy to ${payload.targetLanguage}, maintaining the same tone and marketing impact:\n\n${generatedCopy.text}`,
},
],
experimental_telemetry: {