Tag: claude-api
All the articles with the tag "claude-api".
-
Claude API Streaming — Why TTFT Matters, and How Events Actually Flow
Streaming isn't just a 'text appears letter by letter like an LLM' effect. Even with the same total time, the time until the user sees the first result (TTFT) differs, and that difference is the core of UX. I also traced the event order that delivers it, hands-on.
-
How System Prompts Differ from User Messages — Persona Consistency and Forcing JSON Output
A question I ran into while experimenting with personas in the Claude API: how is a system prompt actually different from just writing 'please do X' in a user message? I worked through this in terms of consistency, security, and output enforcement.
-
Claude API Doesn't Remember — Maintaining Context in Multi-Turn Conversations
The API is stateless. You need to accumulate assistant messages in the messages array for the chatbot to remember the previous conversation. I confirmed this through a direct comparison experiment.