DEV Community

Shipping LLM Features Series' Articles

Back to Ahmed Mahmoud's Series
Streaming AI Responses in Next.js: SSE, Fetch Streams, and What Breaks in Production

Streaming AI Responses in Next.js: SSE, Fetch Streams, and What Breaks in Production

1
Comments
6 min read
One API Key for Every Model: Field Notes on the Vercel AI Gateway

One API Key for Every Model: Field Notes on the Vercel AI Gateway

Comments
4 min read
Getting Typed JSON Out of LLMs: Field Notes on generateObject

Getting Typed JSON Out of LLMs: Field Notes on generateObject

Comments
5 min read
Running AI-Generated Code Safely: Field Notes on Vercel Sandbox

Running AI-Generated Code Safely: Field Notes on Vercel Sandbox

5
Comments 1
5 min read
How I Test an LLM Feature: Field Notes on Golden Sets, LLM-as-Judge, and Eval Gates in CI

How I Test an LLM Feature: Field Notes on Golden Sets, LLM-as-Judge, and Eval Gates in CI

Comments
8 min read
Why My LLM Feature Cost More Than It Should: Field Notes on Prompt Caching, Cache Breakpoints, and the Timestamp That Killed Every Hit

Why My LLM Feature Cost More Than It Should: Field Notes on Prompt Caching, Cache Breakpoints, and the Timestamp That Killed Every Hit

Comments 1
7 min read
Why a Better System Prompt Didn't Stop Prompt Injection: Field Notes on the Lethal Trifecta, Scoped Tools, and Untrusted Output

Why a Better System Prompt Didn't Stop Prompt Injection: Field Notes on the Lethal Trifecta, Scoped Tools, and Untrusted Output

Comments
9 min read
Add Four Cost Guards to a Streaming Next.js AI Route with Upstash Redis (Step by Step)
Cover image for Add Four Cost Guards to a Streaming Next.js AI Route with Upstash Redis (Step by Step)

Add Four Cost Guards to a Streaming Next.js AI Route with Upstash Redis (Step by Step)

Comments
15 min read