SShortSingh.
Back to feed

Mid-stream failover made my chat API answer the same prompt twice — switch models before the first token or not at all

0
·2 views

A client's transcript came in looking like a slip of the tongue from a language model: three cut-off sentences about caching, then the exact same question answered again, in a slightly different voice, spliced together as one continuous message. The culprit was failover logic in my chat router. I run an OpenAI-compatible /v1/chat/completions endpoint with 50+ models behind one integration (https://x402.freeq.one/tools/llm_chat.html), and the eco tier picks the cheapest healthy provider for each request. One night an upstream started handing out 429s — but only after accepting the connection an

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

PlateMate — Dietary Safety & Allergen Intelligence Powered by TabPFN

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend I built PlateMate, a dietary safety intelligence platform designed for my close friend and roommate, Alex. Alex lives with two life-altering dietary restrictions: Strict Celiac Disease: Ingesting even 20 parts per million of gluten (a microscopic crumb from a shared toaster or frying oil) triggers an autoimmune attack that damages their small intestine. Peanut Anaphylaxis: Exposure to trace peanut proteins or cross-contact causes acute airway constriction requiring an emergency EpiPen. Dining out or ordering takeo

0
ProgrammingDEV Community ·

How Much to Charge Clients for Travel Time

This article first appeared on Invoala. There isn't one universal number. The workable answer is that you charge travel time at your normal hourly rate whenever the trip is made specifically for one client and you can't do other paid work while you're in transit — and you use a reduced rate, commonly half, only for long stretches where you're just sitting in a seat. Your daily commute is not billable, and a trip you'd make anyway is not billable. Everything else comes down to a rate you choose in advance and write down before the job starts.