You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the example below where the file /abc/test.txt is referenced from inside a liquid comment block. The contents of the file are sent to the LLM, but I wouldn't expect them to be because the file reference is not part of the prompt.
Example:
Instructions here
{% comment %}
// this file shouldn't be included in the prompt sent to the LLM
See file /abc/test.txt
{% endcomment %}
The text was updated successfully, but these errors were encountered:
Related to #59
Exclude file paths inside liquid comment tags from being sent to the LLM.
* Update `src/services/AutoContext.js` to filter out file paths inside liquid comment tags when extracting file paths from the prompt.
* Add a helper function `isInsideLiquidComment` to check if a file path is inside a liquid comment tag.
* Add test cases in `test/AutoContext.test.js` to verify that file paths inside liquid comment tags are excluded.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ferrislucas/promptr/issues/59?shareId=XXXX-XXXX-XXXX-XXXX).
See the example below where the file
/abc/test.txt
is referenced from inside a liquid comment block. The contents of the file are sent to the LLM, but I wouldn't expect them to be because the file reference is not part of the prompt.Example:
The text was updated successfully, but these errors were encountered: