frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Both recent GCP outages caused by fiber optic maintenance

2•fastest963•4m ago•0 comments

GitHub dipped 7%, while both AI labs were down

https://claude.ai/public/artifacts/2368658e-60f2-4f51-8883-8d72738ba7ce
4•Topfi•5m ago•1 comments

Watermarks Track AI Generated Content [video]

https://www.youtube.com/watch?v=kVXp6UNVPTo
2•moebrowne•6m ago•0 comments

The $1 Trump Coin

https://www.theguardian.com/us-news/2026/sep/02/trump-one-dollar-coin
2•flyaway123•7m ago•0 comments

GPT-6 Astra: an automated AI Engineer you can hire for <$6 an hour

https://www.latent.space/p/astra
2•swyx•9m ago•0 comments

WebMCP DJ – BananaLabs

https://devpost.com/software/bananalabs-webmcp-dj
1•kushagra525•9m ago•1 comments

Daybreak for Frontline Defenders: $1B to protect essential services

https://openai.com/index/daybreak-for-frontline-defenders
1•kuberwastaken•12m ago•0 comments

A paradigm shift in text selection

https://ishmael.textualize.io/blog/shift-select/
2•willm•14m ago•1 comments

Show HN: Building AI agents client-side JavaScript

1•stephenblum•16m ago•1 comments

Www.whitehouse.gov/Arcade/

https://www.whitehouse.gov/arcade/
4•typeofhuman•21m ago•1 comments

Your CTO Job Description Is a Confession

https://jasmor.substack.com/p/your-cto-job-description-is-a-confession
4•mooreds•21m ago•0 comments

AI Automation for Government Contracting

1•ranveergill•23m ago•0 comments

A new way to store thermal energy (2017)

https://news.mit.edu/2017/new-way-store-thermal-energy-1117
2•Retro_Dev•23m ago•0 comments

Microsoft slashes Xbox Cloud Gaming to just 15h/month for Ultimate subscribers

https://www.theverge.com/news/989166/microsoft-xbox-cloud-gaming-hourly-limits-changes
1•realsarm•24m ago•1 comments

MockBase – record real API traffic and replay it as a mock

https://mockbase.org/
2•xerat•26m ago•0 comments

A look at coding agent benchmarks, and what may be interesting next

https://tuneloop.io/blog/coding-agent-benchmarks
1•behat•27m ago•0 comments

Muscles talk to the brain to fight depression

https://www.nature.com/articles/s41380-026-03651-y
5•luispa•28m ago•0 comments

Revo Programming Language

https://revo.lung.fyi/
2•birdculture•29m ago•1 comments

Which tools do Claude, Codex and Cursor choose? We measured 17k runs to find out

https://armature.tech/blog/which-tools-coding-agents-install
9•screm•30m ago•1 comments

Ask HN: Could AI Eventually Build God?

3•olirex99•31m ago•4 comments

Fixing Seagate's LaCie hard drive array for the ‪ theslowmoguys [video]

https://www.youtube.com/watch?v=Sn_o8kBcjzI
1•GeoAtreides•32m ago•0 comments

Give Me 12 Minutes and I'll Give You 30 Years of Productivity Advice [video]

https://www.youtube.com/watch?v=MN_LkumE3Ig
1•gmays•33m ago•0 comments

Virginia Community Voids a $100B Data Center Project

https://www.bloomberg.com/news/features/2026-09-02/how-a-revolt-toppled-a-100-billion-data-center...
5•gen220•37m ago•1 comments

If a startup worth your career

https://www.thetrueengineer.com/p/ego-equity-or-exit-checklist-to-decide
8•adletbalzhanov•40m ago•1 comments

Over 700 games launched on Steam in one week – 74% had fewer than 10 reviews

https://www.gamesindustry.biz/over-700-games-launched-on-steam-in-one-week-for-the-first-time-tho...
5•speckx•43m ago•0 comments

Porting the RAD Debugger to macOS

https://robert.wittams.com/posts/porting-the-rad-debugger-to-macos/
1•gmcabrita•45m ago•0 comments

Clockwork Orange (Plot)

https://en.wikipedia.org/wiki/Clockwork_Orange_(plot)
3•vinnyglennon•45m ago•0 comments

A hungry woman is easier to dismiss than a well-fed woman

https://aeon.co/essays/a-hungry-woman-is-easier-to-dismiss-than-a-well-fed-woman
5•gmays•46m ago•0 comments

Social Policy Builds Financial Markets

https://economicsociology.org/2026/08/28/how-social-policy-builds-financial-markets/
1•kome•47m ago•0 comments

LightAudit Score – Lighthouse and PageSpeed Insights in one local console

https://lightauditscore.com
2•crawlforgedev•48m ago•0 comments
Open in hackernews

Ask HN: Why don't LLM APIs have a first-class test mode?

1•masternoob•51m ago
Context: At work, we’re getting ready to stress-test a chatbot for scalability.

One fairly obvious issue came up: if our load tests exercise the real OpenAI/Claude APIs, a scalability test can quickly turn into a token-spending test.

Fair enough. We shouldn’t burn real inference just to test whether our own gateways, queues, WebSockets, streaming paths, retries, etc. can handle load.

The proposed solution was to mock all communication between our backend and the LLM provider.

Also reasonable.

What surprised me was the next step: we have to build and maintain that mocking service ourselves.

We can certainly do that. But should every company integrating with LLM APIs have to reinvent this?

Stripe solved a similar developer-experience problem years ago. They provide test mode, test data, test helpers, and even stripe-mock. It isn’t intended to perfectly reproduce Stripe’s backend behavior, but that’s okay. For many tests, you just need something API-compatible and predictable.

I’d love to see OpenAI, Anthropic, and other LLM providers offer something similar: an official API-compatible test endpoint that doesn’t invoke a model or consume billable tokens.

Ideally it could support things like:

* deterministic canned responses * streaming responses * configurable latency / time-to-first-token * configurable token counts * tool-call responses * 429s, 5xx errors and timeouts * malformed/interrupted streams * rate-limit simulation

The goal wouldn’t be to benchmark the LLM provider. You’d still need the real API for that. The goal would be to stress-test everything around the model without paying for thousands or millions of unnecessary inference calls.

What’s slightly ironic is that both OpenAI and Anthropic appear to use OpenAPI-based mock servers in their own SDK test suites. But, as far as I can tell, neither exposes that concept as a first-class public service for customers.

Am I missing something?

For teams running LLM applications at scale, how are you handling this today — homegrown mock server, generic HTTP mocking, record/replay, or just putting a budget cap on real API load tests?

Comments

dang•49m ago
> Comment is drafted and validated using ChatGPT Plus

Can you please not post AI-generated or AI-edited comments to HN? It's not allowed here - see https://news.ycombinator.com/newsguidelines.html#generated and https://news.ycombinator.com/item?id=47340079.

In this case our software classified your comment as LLM-processed and killed it. I've unkilled it so as to reply. It sounds like you've got a good question here, but please write it yourself, without tool processing.

masternoob•39m ago
Thank you for clarifying. I read HN regularly but haven’t posted anything in the last few years.

I’ve removed the disclaimer from the post. I hope that’s okay. Otherwise, I’d be happy to delete this one and repost it.

RimJobRickyToke•36m ago
check out my post about AI
dang•10m ago
Oh I wasn't objecting to the disclaimer! I appreciate that you included it, since most people posting generated text don't say so. The main thing is that you should post a version of your question that's hand-written. If you do that, we can delete this one or dissociate it from your account.