paul-gauthier / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
19.43k stars 1.79k forks source link

I get answers in Spanish (Aider 0.2.5 and o1-mini) #1791

Open younes-io opened 1 day ago

younes-io commented 1 day ago

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.5 0.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

fry69 commented 1 day 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

younes-io commented 1 day ago

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.