- Custom SSE handler (replaces goctl stub) - Chat() for non-streaming, ChatStream() for SSE - Provider selection (user key > system key) - Quota freeze/settle/unfreeze billing flow - Usage recording + conversation message saving
- ai.api: chat completions, conversations CRUD, models, quota - 8 handlers + 8 logic stubs generated - Routes registered with Cors,Log,Auth middleware