Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How to verify a gateway is not a shell: five checks from the outside

Anyone can put an OpenAI-compatible endpoint in front of a queue and answer requests. The hard part is proving that a specific request actually reached the model whose name is in the model field, at the context length and price the seller advertised. The difference between a reseller and a shell is invisible in the happy path — both return a plausible paragraph — so verification has to come from…

OpenAI-compatible endpoints can be placed in front of a queue, but verifying that a specific request reaches the advertised model is challenging. The five checks for verifying a gateway are:

1. Token accounting must scale: Compare prompt_tokens moving roughly tenfold and completion_tokens staying close to constant when sending the same question with a 200-token and a 2,000-token prompt. If the counts barely move, the gateway is not tokenising what it received.

2. Streaming has cadence, not a burst: Measure the time to first token (TTFT) by timestamping each server-sent event (SSE) chunk. A real streaming upstream sends the first token seconds before the last, while a buffered relay shows every delta within the final 200 milliseconds.

3. Model-specific edges must survive: Shells route everything to one underlying model, while real upstreams handle long contexts, tool calls, and reasoning/media differently. Check two cheap checks per provider family to ensure a shell fails both.

4. The metadata surface must hold up against official docs: A real gateway should publish per-model details like context window, capability flags, official price, and source links. A shell shows a truncated model list with no tiers, separate input and output pricing, and no source links.

5. Failures are specific, and uptime is measured: A real gateway returns specific error codes and messages, while a shell returns a generic 500 error. Availability claims should be skeptical, with uptime figures varying per model rather than being 100% for every model.

These checks help detect cheap implementations and ensure the gateway accurately reflects the advertised model and pricing.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

The Newer YOLO Model Had Better mAP. It Counted Sheep Worse.

I nearly shipped a newer YOLO model because the headline benchmark said it was better. The iOS app already bundled yolov8n . I exported yolo11n , yolo26n , yolo11s and yolo26s to CoreML.

  • Newer YOLO models outperformed in benchmarks but had counting errors with sheep.
  • Older model predicted 262 sheep, newer models predicted 278 and 301 respectively.
  • Deployment pipeline's performance, not model architecture, ultimately mattered.

A "Try for free" click shouldn't cost a first-time buyer $1.26 and five minutes

Every Actor we publish has a health check that answers one question: does a real run return real rows? Two of our Actors passed that check every time.

  • "Try for free" click cost $1.26 and 5 minutes for first-time buyers
  • Default settings caused sequential HTTP requests and URL decoding issues
  • Adjusting defaults reduced runtime to 90 seconds and cost to $0.0056

I kept writing Hindley-Milner signatures in my comments, so I made them type-check

A few years ago I worked my way through Professor Frisby's Mostly Adequate Guide to Functional Programming . Chapter 7, "Hindley-Milner and Me", has signatures in comments like these: // strLength…

  • HinMil type-checks JavaScript based on comments containing signatures
  • Developed by author inspired by Mostly Adequate Guide
  • Supports functional style without TypeScript conversion

Can 75 years of weather judge a proverb? Building Proverb Court with Kiro

This post is written as part of the Kiroween 2026 hackathon. My entry, Proverb Court, is in the Frankenstein category: Egyptian folklore, the Coptic calendar and 76 years of reanalysis weather data…

  • Proverb Court app blends folklore, Coptic calendar, and 76 years of weather data
  • Seven proverbs tested in Cairo, Alexandria, Aswan, Winchester, London
  • Baba's arrival supported annually in Cairo, Aswan, Winchester

Website creation by subscription: prices and pitfalls

A subscription-based website costs between €59 and €150 excluding tax per month from providers who publish their rates, with or without setup fees, representing €3,540 to €9,800 over five years: the…

  • 3,982 Normandy businesses created sites via online platforms in July 2026
  • Subscription site prices range from €59 to €150 monthly
  • Financial leasing subscription locks you into 36-60 months before sale

More from Tuesday, 1 December 2026 →