Use these patterns when moving from prototype to production.Documentation Index
Fetch the complete documentation index at: https://docs.ai-stats.phaseo.app/llms.txt
Use this file to discover all available pages before exploring further.
Reliability checklist
- Set client-side timeout and cancellation controls.
- Handle
429and5xxwith exponential backoff. - Treat disconnected streams as retryable.
- Persist partial text only after completion if correctness matters.
Browser/Node cancellation example
UI guidance
- Render token deltas progressively.
- Show an explicit “generation ended” state when
[DONE]arrives. - Keep request id and model id in logs for replay/debugging.
When not to stream
- Tool-calling flows under current request validation (
stream + toolsrejected). - Workflows requiring full validation before any user-visible output.