Skip to content

Commit 8690878

Browse files
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.
1 parent b78b3dc commit 8690878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/guides/ai-agents/generate-translate-copy.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const generateAndTranslateTask = task({
8080
},
8181
{
8282
role: "user",
83-
content: `Translate the following marketing copy to ${payload.targetLanguage}, maintaining the same tone and marketing impact:\n\n${generatedCopy}`,
83+
content: `Translate the following marketing copy to ${payload.targetLanguage}, maintaining the same tone and marketing impact:\n\n${generatedCopy.text}`,
8484
},
8585
],
8686
experimental_telemetry: {

0 commit comments

Comments
 (0)