Skip to content

Commit ccb5526

Browse files
committed
linter fix
1 parent db00aa0 commit ccb5526

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎packages/react-native-executorch/src/controllers/LLMController.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class LLMController {
117117
this.nativeModule.unload();
118118
}
119119

120-
if ((model.capabilities ?? []).find((c) => c == 'audio')) {
120+
if ((model.capabilities ?? []).find((c) => c === 'audio')) {
121121
this.audioConfig = model.audioConfig;
122122
}
123123

@@ -297,7 +297,6 @@ export class LLMController {
297297
const hasImages = !!imagePaths && imagePaths.length > 0;
298298
const hasAudio = !!audioWaveforms && audioWaveforms.length > 0;
299299
try {
300-
console.log('kappa');
301300
this.isGeneratingCallback(true);
302301
this.nativeModule.reset();
303302
let response: string;
@@ -361,8 +360,6 @@ export class LLMController {
361360
messages: Message[],
362361
tools?: LLMTool[]
363362
): Promise<string> {
364-
let s = performance.now();
365-
console.log('kappa', performance.now() - s);
366363
if (!this._isReady) {
367364
throw new RnExecutorchError(
368365
RnExecutorchErrorCode.ModuleNotLoaded,
@@ -393,7 +390,6 @@ export class LLMController {
393390
tools,
394391
{ tools_in_user_message: false, add_generation_prompt: true }
395392
);
396-
console.log('kappa', performance.now() - s);
397393

398394
return await this.forward(
399395
renderedChat,

0 commit comments

Comments
 (0)