Closed younes-io closed 2 weeks ago
Thank you for filing this issue.
You are running a very outdated version of aider, please try uninstalling and reinstalling.
See here for instructions -> https://aider.chat/docs/install/install.html
Update: I just saw that you are running 0.57.1, which is recently current, not 0.2.5 as you first stated.
Apart from that, it is a quirk of this model (and some others) to answer in a random language when there not enough content in the context. If you keep seeing this behavior even with some files in the context and some chat history, try using a code conventions file and put "Always answer in English" into it.
See here -> https://aider.chat/docs/usage/conventions.html
Thank you for the feedback.
The 0.2.5 was a typo.
I always start the chat by adding all the source files (around 12k tokens). The source code uses English in comments and variable naming conventions, etc. Also, I find it hard to blame the model; I use it in other contexts (not using aider), and I have never experienced this hallucination.
@younes-io check if this fixes your problem: https://github.com/paul-gauthier/aider/issues/1850#issuecomment-2392342219
@jorgecolonconsulting I think it would; it's similar to my workaround: I added a CONVENTIONS.md
file with a prompt requesting the model always to use English (as suggested by @fry69 )
Any idea when your fix will be merged? Btw, I'll test later and let you know if I notice any hallucinations. Thank you
Any idea when your fix will be merged?
Only @paul-gauthier knows.
@younes-io Not sure why no one mentioned it, but this problem already popped up multiple times recently - aider sends info about your system to the LLM, including system language. For me, it included a simple "System language: cs", which was enough to sometimes cause aider to reply in czech. Soon after raising the issue, a chat-language
flag was added. I have it in my .aider.conf.yml as chat-language: "en"
and had no issues since. You can try it. Might also be able to pass it using --chat-language
@AspireOne Oh I didn't know that. I will definitely try this! Thank you!
@younes-io Not sure why no one mentioned it, but this problem already popped up multiple times recently - aider sends info about your system to the LLM, including system language. For me, it included a simple "System language: cs", which was enough to sometimes cause aider to reply in czech. Soon after raising the issue, a
chat-language
flag was added. I have it in my .aider.conf.yml aschat-language: "en"
and had no issues since. You can try it. Might also be able to pass it using--chat-language
I tried this.. for now, I didnt see any issues.. I will consider this solved :)
Issue
I get answers in Spanish, which is weird. I don't doubt the model because I use it in other tools, and I get answers in English, but with Aider
0.2.50.57.1 I get this behavior (my use case requires o1-mini, so testing or working with other models is worthless. I need o1-mini)Version and model info
aider 0.57.1 model: o1-mini