Skip to content

Commit 0b4f265

Browse files
committed
fix: prompt output
1 parent 9befa8a commit 0b4f265

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/scripts/glossary.genai.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ for (const file of files) {
4949
}
5050

5151
// Create the prompt for extracting technical terms
52-
$`
52+
const { text: newTermsResponse } = await prompt`
5353
You are tasked with creating a comprehensive glossary of technical terms from the provided content.
5454
5555
## Content to analyze:
@@ -83,9 +83,6 @@ ${Array.from(existingTerms).join(", ")}`
8383
Provide only the glossary entries, one per line, sorted alphabetically. Do not include any headers, explanations, or other text.
8484
`;
8585

86-
// Get the AI response with new terms
87-
const newTermsResponse = env.vars.response || "";
88-
8986
// Combine existing and new terms
9087
let finalGlossary = "";
9188

0 commit comments

Comments
 (0)