We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 7935822 commit cd76743Copy full SHA for cd76743
lib/helper/AI.js
@@ -74,7 +74,7 @@ class AI extends Helper {
74
for (const chunk of htmlChunks) {
75
const messages = [
76
{ role: gtpRole.user, content: prompt },
77
- { role: gtpRole.user, content: `Within this HTML: ${minifyHtml(chunk)}` },
+ { role: gtpRole.user, content: `Within this HTML: ${await minifyHtml(chunk)}` },
78
]
79
80
if (htmlChunks.length > 1)
@@ -110,7 +110,7 @@ class AI extends Helper {
110
111
112
113
- { role: gtpRole.user, content: `Within this HTML: ${minifyHtml(html)}` },
+ { role: gtpRole.user, content: `Within this HTML: ${await minifyHtml(html)}` },
114
115
116
const response = await this._processAIRequest(messages)
0 commit comments