We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ba2fe commit cbadd36Copy full SHA for cbadd36
src/base.mjs
@@ -470,8 +470,8 @@ class TinyAiInstance extends EventEmitter {
470
buildContents(contents, item = {}, role = null, rmFinishReason = false) {
471
// Content Data
472
const tinyThis = this;
473
- /** @type {{ finishReason: string|number|undefined, parts: any[], role: string }} */
474
- const contentData = { parts: [], finishReason: 'UNKNOWN', role: 'unknown' };
+ /** @type {{ finishReason: string|number|undefined, parts: any[], role: string|undefined }} */
+ const contentData = { parts: [], finishReason: undefined, role: undefined };
475
476
// Role
477
if (typeof role === 'string') contentData.role = role;
0 commit comments