Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit a6751b8

Browse files
authored
Add Prompt Template for Android Demo App
1 parent 6a2a2e8 commit a6751b8

File tree

1 file changed

+1
-1
lines changed
  • torchchat/edge/android/torchchat/app/src/main/java/org/pytorch/torchchat

1 file changed

+1
-1
lines changed

torchchat/edge/android/torchchat/app/src/main/java/org/pytorch/torchchat/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private void onModelRunStopped() {
204204
mSendButton.setText("Generate");
205205
mSendButton.setOnClickListener(
206206
view -> {
207-
String prompt = mEditTextMessage.getText().toString();
207+
String prompt = mEditTextMessage.getText().toString() + "<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"
208208
mMessageAdapter.add(new Message(prompt, true));
209209
mMessageAdapter.notifyDataSetChanged();
210210
mEditTextMessage.setText("");

0 commit comments

Comments
 (0)