Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/helper/AI.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class AI extends Helper {
for (const chunk of htmlChunks) {
const messages = [
{ role: gtpRole.user, content: prompt },
{ role: gtpRole.user, content: `Within this HTML: ${minifyHtml(chunk)}` },
{ role: gtpRole.user, content: `Within this HTML: ${await minifyHtml(chunk)}` },
]

if (htmlChunks.length > 1)
Expand Down Expand Up @@ -110,7 +110,7 @@ class AI extends Helper {

const messages = [
{ role: gtpRole.user, content: prompt },
{ role: gtpRole.user, content: `Within this HTML: ${minifyHtml(html)}` },
{ role: gtpRole.user, content: `Within this HTML: ${await minifyHtml(html)}` },
]

const response = await this._processAIRequest(messages)
Expand Down
Loading