Skip to content

Commit 13f631e

Browse files
fix: collect imagePaths from messageHistoryWithPrompt, not full history
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a0b80e3 commit 13f631e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export class LLMController {
369369
// eslint-disable-next-line camelcase
370370
{ tools_in_user_message: false, add_generation_prompt: true }
371371
);
372-
const imagePaths = updatedHistory
372+
const imagePaths = messageHistoryWithPrompt
373373
.filter((m) => m.mediaPath)
374374
.map((m) => m.mediaPath!);
375375
response = await this.forward(renderedPrompt, imagePaths);

0 commit comments

Comments
 (0)