# Which AI Model Should I Use for Programming?

**URL:** <https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996>\
**Category:** Discussions\
**Created:** [January 13, 2025, 3:48am UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996 "2025-01-13T03:48:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![huangyingw](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/huangyingw/32/8208_2.png) [@huangyingw](https://forum.cursor.com/u/huangyingw)\
**Post date:** [January 13, 2025, 3:48am UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/1 "2025-01-13T03:48:00Z")

</div>

I’m currently using Claude 3.5 Sonnet (Oct 22, 2024) for cursor composer agent, and I’m wondering if there are better AI models. Specifically, I’m looking for guidance on how to evaluate and choose the right AI model for coding.

Here are the factors I’m considering:

1. **Accuracy and Correctness** : The quality of code generation and error detection is a top priority.
2. **Context Window Length** : I understand that longer context windows allow for extended conversations and complex modifications. This seems especially useful for tasks involving large codebases or detailed iterations.

**My Questions:**

- Are there any online resources or benchmarks that compare the latest AI models for programming?
- Beyond accuracy and correctness, how significant is the context window length in real-world use cases?
- How can I stay updated if better models or versions are released in the future?

I would appreciate any insights, experiences, or recommendations for selecting the most effective AI model for programming tasks. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![maxfahl](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/maxfahl/32/43872_2.png) [@maxfahl](https://forum.cursor.com/u/maxfahl)\
**Post date:** [January 13, 2025, 8:05am UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/2 "2025-01-13T08:05:27Z")

</div>

Claude 3.5 Sonnet still seems like the best model for general coding tasks. If I get stuck on a problem using that model, I usually try OpenAI o1, and sometimes that can get me unstuck.

I’ve found the latest Gemini Flash model to be quite useless in Cursor so far. OpenAI 4o is almost worthless compared to Sonnet.

I have a feeling the context length is being limited by Cursor itself and not the model APIs.

Sorry for not answering all of your questions, I just wanted to pitch in with my thoughts. It seems that Sonnet is the preferred model by most developers still.

---

<div class="post-metadata">

**Author:** ![huangyingw](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/huangyingw/32/8208_2.png) [@huangyingw](https://forum.cursor.com/u/huangyingw)\
**Post date:** [January 13, 2025, 6:58pm UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/3 "2025-01-13T18:58:58Z")

</div>

thanks a lot for your input  
there are 2 Claude 3.5 Sonnet, the latest is “Claude-3-5-Sonnect-20241022”, and recommended to use this right?  
My way to confirm is go to [Claude 3.5 Sonnet \ Anthropic](https://www.anthropic.com/claude/sonnet) to find the latest one.  
But I feels this seem not the best practice.  
I am looking for a better way…

---

<div class="post-metadata">

**Author:** ![josmithiii](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/josmithiii/32/14972_2.png) [@josmithiii](https://forum.cursor.com/u/josmithiii)\
**Post date:** [January 13, 2025, 8:26pm UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/4 "2025-01-13T20:26:05Z")

</div>

I too find Claude to be the best. However, it falls short on very large files, somewhere around 1650 lines in my case, after which it could only see “…”, as it told me. I switched to o1 and it apparently digested the whole thing. I once got an excellent series of progressive unit tests from o1. In general, however, o1 is not as good at guessing what I probably want, and tends to stop short of a complete answer, perhaps because it is pre-prompted not to do too much inference due to the cost.

---

<div class="post-metadata">

**Author:** ![Raka-Saka](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/raka-saka/32/16559_2.png) [@Raka-Saka](https://forum.cursor.com/u/Raka-Saka)\
**Post date:** [January 14, 2025, 2:49am UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/5 "2025-01-14T02:49:26Z")

</div>

I’ve been dabbling with Rust for a couple of weeks now and get lots of issues with sonnet. My screwdriver is sometimes to paste my terminal logs into chatgpt o1 and provide its answer to sonnet. It tends to unblock some of Sonnet looping errors, especially with Rust.

---

<div class="post-metadata">

**Author:** ![RenjiYuusei](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/renjiyuusei/32/22500_2.png) [@RenjiYuusei](https://forum.cursor.com/u/RenjiYuusei)\
**Post date:** [January 14, 2025, 3:28am UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/6 "2025-01-14T03:28:44Z")

</div>

claude 3.5 sonnet is the best right now

---

<div class="post-metadata">

**Author:** ![huangyingw](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/huangyingw/32/8208_2.png) [@huangyingw](https://forum.cursor.com/u/huangyingw)\
**Post date:** [January 17, 2025, 6:58am UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/7 "2025-01-17T06:58:39Z")

</div>

there are two claude 3.5 sonnet .  
The best one is claude 3.5 sonnet 20241022 , right?

---

<div class="post-metadata">

**Author:** ![RenjiYuusei](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/renjiyuusei/32/22500_2.png) [@RenjiYuusei](https://forum.cursor.com/u/RenjiYuusei)\
**Post date:** [January 17, 2025, 6:59am UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/8 "2025-01-17T06:59:16Z")

</div>

both are the same

---

<div class="post-metadata">

**Author:** ![silkux](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/silkux/32/19875_2.png) [@silkux](https://forum.cursor.com/u/silkux)\
**Post date:** [March 17, 2025, 2:53pm UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/9 "2025-03-17T14:53:47Z")

</div>

All the models . chat gpt plus claude professional, cursor, claude code. if you know how to use the best of each one. you have to paid for all of them

---

<div class="post-metadata">

**Author:** ![jonjag](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@jonjag](https://forum.cursor.com/u/jonjag)\
**Post date:** [December 10, 2025, 8:37pm UTC](https://forum.cursor.com/t/which-ai-model-should-i-use-for-programming/40996/10 "2025-12-10T20:37:41Z")

</div>

is it possible and sensible to use flower.ai to fine tune an AI model and also use it for a quick feed back loop in updating the model?

> **[Flower: A Friendly Federated AI Framework](https://flower.ai/)**
>
> A unified approach to federated learning, analytics, and evaluation. Federate any workload, any ML framework, and any programming language.
