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

[enhancement] Modify the OpenAI System prompt so that "Files" are interpreted as the Repo Map #594

Open
nevercast opened this issue May 7, 2024 · 2 comments
Labels
enhancement New feature or request fixed

Comments

@nevercast
Copy link

Issue

I often use the phrasing "Find files under the directory and modify them in some way". Often, GPT-4 comes back with:

I'm sorry for any confusion, but as an AI developed by OpenAI, I don't have the capability to list files or read the contents of a directory in a real filesystem

I suspect a change to the system prompt would assist with this situation.

Version and model info

aider 0.31.1
gpt-4 (default)

@paul-gauthier
Copy link
Owner

I updated the prompts to use more natural phrasing about files, the git repo, etc. This should hopefully allow the LLM to better understand you when you make references to "the files" or "the repo", etc.

The change is available in the main branch. You can get it by installing the latest version from github:

python -m pip install --upgrade git+https://github.com/paul-gauthier/aider.git

If you have a chance to try it, let me know if it works better for you.

@paul-gauthier paul-gauthier added enhancement New feature or request fixed labels May 9, 2024
@nevercast
Copy link
Author

Hi Paul, thanks for taking a look at this and making some changes in your own repo.
Using the remote you provided, I don't see a change in the behaviour.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed
Projects
None yet
Development

No branches or pull requests

2 participants