Skip to content

Commit 0716336

Browse files
committed
Added .prompt() method into the AIMODEL().
1 parent c363327 commit 0716336

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

aimodel.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ AI.prototype.user = function(content, merge) {
6969
return this.message('user', content, merge);
7070
};
7171

72+
AI.prototype.prompt = function(content) {
73+
this.payload.prompt = content;
74+
return this;
75+
};
76+
7277
AI.prototype.assistant = function(content, merge) {
7378
return this.message('assistant', content, merge);
7479
};

0 commit comments

Comments
 (0)