File tree Expand file tree Collapse file tree
llm/android/LlamaDemo/app/src/main/java/com/example/executorchllamademo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ private void setLocalModel(
212212 }
213213 } catch (ExecutorchRuntimeException e ) {
214214 modelInfo = e .getMessage () + "\n " ;
215- String errorLog = e .getDetailedError ();
216- ETLogging .getInstance ().log ("Error while loading model " + errorLog );
215+ // String errorLog = e.getDetailedError();
216+ // ETLogging.getInstance().log("Error while loading model " + errorLog);
217217
218218 loadDuration = 0 ;
219219 AlertDialog .Builder builder = new AlertDialog .Builder (this );
@@ -414,6 +414,9 @@ private void checkForClearChatHistory(SettingsFields updatedSettingsFields) {
414414 // changing to false since chat history has been cleared.
415415 updatedSettingsFields .saveIsClearChatHistory (false );
416416 mDemoSharedPreferences .addSettings (updatedSettingsFields );
417+ if (mModule != null ) {
418+ mModule .resetContext ();
419+ }
417420 }
418421 }
419422
You can’t perform that action at this time.
0 commit comments