白嫖!GPT 4.1凌晨上线,卷王Cursor火速接入,反手就给免费开放了
就在今天凌晨一点
OpenAI 正式通过 API 形式发布了全新的 GPT-4.1 系列模型。
这次发布的GPT-4.1 系列包含包括三个不同定位的版本:
- GPT-4.1:高性能旗舰模型,支持100k超长上下文,性能全面超越 GPT-4o。
- GPT-4.1 mini:性能接近 GPT-4o,但更快更省钱。
- GPT-4.1 nano:极致轻量,速度最快、成本最低,适合轻量任务和对延迟敏感的场景。
而且,就在 GPT-4.1 发布不到一个小时,Cursor就官宣接入了 GPT-4.1,而且还完全免费!
Cursor 真的是卷王之王,第一时间接入 + 免费开放。
不仅卷,还财大气粗,新用户注册有14天的免费pro,而且还可以通过各种方式来无限续杯。明明一个月才20美刀的订阅费,但是可以直接用各种高级模型,Cursor太有钱了。
在Cursor中启用GPT-4.1也很方便:点击File - Preference - Cursor Settings,选择Models,找到 gpt-4.1勾选上即可
不过,目前Cursor只接入了 gpt-4.1,还没有接入 4.1-mini 和 4.1-nano 模型。
简单生成个代码试一下,让GPT-4.1运行20个弹性小球:
提示词如下(来自 https://github.com/KCORES/kcores-llm-arena ):- Write a Python program that shows 20 balls bouncing inside a spinning heptagon:
- - All balls have the same radius.
- - All balls have a number on it from 1 to 20.
- - All balls drop from the heptagon center when starting.
- - Colors are: #f8b862, #f6ad49, #f39800, #f08300, #ec6d51, #ee7948, #ed6d3d, #ec6800, #ec6800, #ee7800, #eb6238, #ea5506, #ea5506, #eb6101, #e49e61, #e45e32, #e17b34, #dd7a56, #db8449, #d66a35
- - The balls should be affected by gravity and friction, and they must bounce off the rotating walls realistically. There should also be collisions between balls.
- - The material of all the balls determines that their impact bounce height will not exceed the radius of the heptagon, but higher than ball radius.
- - All balls rotate with friction, the numbers on the ball can be used to indicate the spin of the ball.
- - The heptagon is spinning around its center, and the speed of spinning is 360 degrees per 5 seconds.
- - The heptagon size should be large enough to contain all the balls.
- - Do not use the pygame library; implement collision detection algorithms and collision response etc. by yourself. The following Python libraries are allowed: tkinter, math, numpy, dataclasses, typing, sys.
- - All codes should be put in a single Python file.
复制代码 结果如下,效果还是非常好的
本来还想用Cursor生成个复杂的多文件项目,不过用gpt-1的Agent实测下来总是生成失败,不能调用工具,也不能自动Apply(偶尔能成功),用gpt-4o测试了一下也是类似的情况。
但使用Claude就完全没问题,猜测可能是因为Cursor没有专门针对gpt优化的原因,所以目前最强的编程模型还是Claude。
根据官网的介绍,gpt-4.1在SWE-bench上面取得了很好的结果,是OpenAI系列模型中代码能力最强的。不过这里并没有和Claude等模型进行横向对比,不好评价。
<hr/>@杰一学长AI编程 |
|