File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class AI extends Helper {
74
74
for ( const chunk of htmlChunks ) {
75
75
const messages = [
76
76
{ role : gtpRole . user , content : prompt } ,
77
- { role : gtpRole . user , content : `Within this HTML: ${ minifyHtml ( chunk ) } ` } ,
77
+ { role : gtpRole . user , content : `Within this HTML: ${ await minifyHtml ( chunk ) } ` } ,
78
78
]
79
79
80
80
if ( htmlChunks . length > 1 )
@@ -110,7 +110,7 @@ class AI extends Helper {
110
110
111
111
const messages = [
112
112
{ role : gtpRole . user , content : prompt } ,
113
- { role : gtpRole . user , content : `Within this HTML: ${ minifyHtml ( html ) } ` } ,
113
+ { role : gtpRole . user , content : `Within this HTML: ${ await minifyHtml ( html ) } ` } ,
114
114
]
115
115
116
116
const response = await this . _processAIRequest ( messages )
You can’t perform that action at this time.
0 commit comments