Skip to content

Commit cbadd36

Browse files
tiny fix
1 parent 31ba2fe commit cbadd36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,8 @@ class TinyAiInstance extends EventEmitter {
470470
buildContents(contents, item = {}, role = null, rmFinishReason = false) {
471471
// Content Data
472472
const tinyThis = this;
473-
/** @type {{ finishReason: string|number|undefined, parts: any[], role: string }} */
474-
const contentData = { parts: [], finishReason: 'UNKNOWN', role: 'unknown' };
473+
/** @type {{ finishReason: string|number|undefined, parts: any[], role: string|undefined }} */
474+
const contentData = { parts: [], finishReason: undefined, role: undefined };
475475

476476
// Role
477477
if (typeof role === 'string') contentData.role = role;

0 commit comments

Comments
 (0)