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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user