Answer#
Model quality, price and speed change often, so any ranking printed here would be out of date soon. A test on your own code stays valid. The model name is a field in the provider entry (AI > AI Providers...), so trying another one means editing one text field, and the presets only suggest a default.
How to do it#
- Choose a handful of real tasks, small enough to check in minutes:
- fix a compiler error about borrowing or lifetimes;
- write tests for a function you wrote;
- convert a small function from another language;
- explain a piece of code with unsafe or async.
- Run the same prompts through each candidate, with the same context.
- Score each result with checks you can repeat:
- Does it compile on the first try (
cargo check)? - Do the tests pass?
- Does it use APIs that exist in the crate versions in your
Cargo.toml? - Did it make the smallest change that solves the problem, or rewrite everything?
- Does it explain a trade-off honestly, such as when
clone()is only a shortcut?
- Does it compile on the first try (
- Note the cost and the waiting time as well. A cheaper, faster model that fixes most errors may serve better than the largest one for everyday work.
- Repeat after a provider announces a new model. Keep the task list in a file so the comparison is the same each time.
Things to consider#
- A local model (see the thread on Ollama, LM Studio and llama.cpp) is private and free to run but usually weaker on hard ownership problems.
- Several providers can sit in the list at once; use Use this one to switch the active provider.
- A very large file or very long chat uses more of the model's context. Start a new chat (AI > New AI Chat) when you change topic.
Common mistakes#
- Judging a model by one impressive answer. Ten ordinary tasks tell you more.
- Comparing prompts that differ. Keep the question and the attached context identical.