Skip to content

Commit 539a125

Browse files
committed
linter fix
1 parent db00aa0 commit 539a125

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎packages/react-native-executorch/src/constants/modelUrls.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ const GEMMA4_E2B_XNNPACK = `${URL_PREFIX}-gemma-4/${PREVIOUS_VERSION_TAG}/e2b/xn
129129
const GEMMA4_E2B_VULKAN = `${URL_PREFIX}-gemma-4/${PREVIOUS_VERSION_TAG}/e2b/vulkan/gemma_4_e2b_vulkan_8da4w.pte`;
130130
const GEMMA4_E2B_XNNPACK_MM = `${URL_PREFIX}-gemma-4-multimodal/${PREVIOUS_VERSION_TAG}/e2b/xnnpack/gemma_4_e2b_xnnpack_8da4w.pte`;
131131
const GEMMA4_E2B_VULKAN_MM = `${URL_PREFIX}-gemma-4-multimodal/${PREVIOUS_VERSION_TAG}/e2b/vulkan/gemma_4_e2b_vulkan_8da4w.pte`;
132-
const GEMMA4_TOKENIZER = `${URL_PREFIX}-gemma-4/${PREVIOUS_VERSION_TAG}/e2b/xnnpack/tokenizer.json`;
133-
const GEMMA4_TOKENIZER_CONFIG = `${URL_PREFIX}-gemma-4/${PREVIOUS_VERSION_TAG}/e2b/xnnpack/tokenizer_config.json`;
132+
const GEMMA4_TOKENIZER = `${URL_PREFIX}-gemma-4/${PREVIOUS_VERSION_TAG}/e2b/tokenizer.json`;
133+
const GEMMA4_TOKENIZER_CONFIG = `${URL_PREFIX}-gemma-4/${PREVIOUS_VERSION_TAG}/e2b/tokenizer_config.json`;
134134

135135
/**
136136
* @category Models - LLM

‎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)