Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix auto context to exclude file paths inside liquid comment tags #69

Closed
wants to merge 2 commits into from

Conversation

ferrislucas
Copy link
Owner

@ferrislucas ferrislucas commented Nov 3, 2024

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.

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).
@ferrislucas ferrislucas closed this Nov 3, 2024
@ferrislucas ferrislucas deleted the fix-auto-context branch November 3, 2024 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant