Live data from Hacker News

GPT-4.1 in the API

openai.com

231–240 of 513 posts

Re: GPT-4.1 in the API

#232
• Flagship GPT-4.1: top‑tier intelligence, full endpoints & premium features

• GPT-4.1-mini: balances performance, speed & cost

• GPT-4.1-nano: prioritizes throughput & low cost with streamlined capabilities

All share a 1 million‑token context window (vs 120–200k on 4o-o3/o1), excelling in instruction following, tool calls & coding.

Benchmarks vs prior models:

• AIME ’24: 48.1% vs 13.1% (~3.7× gain)

• MMLU: 90.2% vs 85.7% (+4.5 pp)

• Video‑MME: 72.0% vs 65.3% (+6.7 pp)

• SWE‑bench Verified: 54.6% vs 33.2% (+21.4 pp)

Re: GPT-4.1 in the API

#233

Have they implemented "I don't know" yet. I probably spend 100$ a month on AI coding, and it's great at small straightforward tasks. Drop it into a larger codebase and it'll get confused. Even if the same tool built it in the first place due to context limits. Then again, the way things are rapidly improving I suspect I can wait 6 months and they'll have a model that can do what I want.

I wonder if documentation would help to create an carefully and intentionally tokenized overview of the system. Maximize the amount of routine larger scope information provided in minimal tokens in order to leave room for more immediate context.

Similar to the function documentation provides to developers today, I suppose.

Re: GPT-4.1 in the API

#234

Earlier quoted context omitted.

It's definitely an issue. Even the simplest use case of "create React app with Vite and Tailwind" is broken with these models right now because they're not up to date.

By "broken" you mean it doesn't use the latest and greatest hot trend, right? Or does it literally not work?

It has been really frustrating learning Godot (or any new technology you are not familiar with) 4.4.x with GPT4o or even worse, with custom GPT which use older GPT4turbo.

As you are new in the field, it kinda doesn't make sense to pick an older version. It would be better if there was no data than incorrect data. You literally have to include the version number on every prompt and even that doesn't guarantee a right result! Sometimes I have to play truth or dare three times before we finally find the right names and instructions. Yes I have the version info on all custom information dialogs, but it is not as effective as including it in the prompt itself.

Searching the web feels like an on-going "I'm feeling lucky" mode. Anyway, I still happen to get some real insights from GPT4o, even though Gemini 2.5 Pro has proven far superior for larger and more difficult contexts / problems.

The best storytelling ideas have come from GPT 4.5. Looking forward to testing this new 4.1 as well.

Re: GPT-4.1 in the API

#235
post #187

Earlier quoted context omitted.

That's not a lot of samples for such a small effect, I don't think it's statistically significant (p-value of around 10%).

p-value of 7.9% — so very close to statistical significance. the p-value for GPT-4.1 having a win rate of at least 49% is 4.92%, so we can say conclusively that GPT-4.1 is at least (essentially) evenly matched with Claude Sonnet 3.7, if not better. Given that Claude Sonnet 3.7 has been generally considered to be the best (non-reasoning) model for coding, and given that GPT-4.1 is substantially cheaper ($2/million inp…

I make it 8.9% with a binomial test[0]. I rounded that to 10%, because any more precision than that was not justified.

Specifically, the results from the blog post are impossible: with 200 samples, you can't possibly have the claimed 54.9/45.1 split of binary outcomes. Either they didn't actually make 200 tests but some other number, they didn't actually get the results they reported, or they did some kind of undocumented data munging like excluding all tied results. In any case, the uncertainty about the input data is larger than the uncertainty from the rounding.

[0] In R, binom.test(110, 200, 0.5, alternative="greater")

Re: GPT-4.1 in the API

#236
post #216

Earlier quoted context omitted.

By "broken" you mean it doesn't use the latest and greatest hot trend, right? Or does it literally not work?

Periodically I keep trying these coding models in Copilot and I have yet to have an experience where it produced working code with a pretty straightforward TypeScript codebase. Specifically, it cannot for the life of it produce working Drizzle code. It will hallucinate methods that don't exist despite throwing bright red type errors. Does it even check for TS errors?

Not sure about Copilot, but the Cursor agent runs both eslint and tsc by default and fixes the errors automatically. You can tell it to run tests too, and whatever other tools. I've had a good experience writing drizzle schemas with it.

Re: GPT-4.1 in the API

#237
post #203

don't miss that OAI also published a prompting guide WITH RECEIPTS for GPT 4.1 specifically for those building agents... with a new recommendation for: - telling the model to be persistent (+20%) - dont self-inject/parse toolcalls (+2%) - prompted planning (+4%) - JSON BAD - use XML or arxiv 2406.13121 (GDM format) - put instructions + user query at TOP -and- BOTTOM - bottom-only is VERY BAD - no evidence that ALL CA…

As an aside, one of the worst aspects of the rise of LLMs, for me, has been the wholesale replacement of engineering with trial-and-error hand-waving. Try this, or maybe that, and maybe you'll see a +5% improvement. Why? Who knows. It's just not how I like to work.

Software engineering has involved a lot of people doing trial-and-error hand-waving for at least a decade. We are now codifying the trend.

Re: GPT-4.1 in the API

#238
Sam Altman wrote in February that GPT-4.5 would be "our last non-chain-of-thought model" [1], but GPT-4.1 also does not have internal chain-of-thought [2].

It seems like OpenAI keeps changing its plans. Deprecating GPT-4.5 less than 2 months after introducing it also seems unlikely to be the original plan. Changing plans is necessarily a bad thing, but I wonder why.

Did they not expect this model to turn out as well as it did?

[1] https://x.com/sama/status/1889755723078443244

[2] https://github.com/openai/openai-cookbook/blob/6a47d53c967a0...

Re: GPT-4.1 in the API

#239

I'm not really bullish on OpenAI. Why would they only compare with their own models? The only explanation could be that they aren't as competitive with other labs as they were before.

Apple compares against its own products most of the times.

Re: GPT-4.1 in the API

#240

> They feature a refreshed knowledge cutoff of June 2024. As opposed to Gemini 2.5 Pro having cutoff of Jan 2025. Honestly this feels underwhelming and surprising. Especially if you're coding with frameworks with breaking changes, this can hurt you.

It's definitely an issue. Even the simplest use case of "create React app with Vite and Tailwind" is broken with these models right now because they're not up to date.

Whenever an LLM struggles with a particular library version, I use Cursor Rules to auto-include migration information and that generally worked well enough in my cases.
Post reply on HN