Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
-- 110_batch_item_checkpoints.sql
-- Durable per-item checkpoints for OpenAI-compatible batch processing.
CREATE TABLE IF NOT EXISTS batch_item_checkpoints (
batch_id TEXT NOT NULL,
line_number INTEGER NOT NULL,
custom_id TEXT,
status TEXT NOT NULL CHECK(status IN ('pending', 'processing', 'completed', 'errored')),
result_json TEXT,
error_json TEXT,
created_at INTEGER NOT NULL,
updated_at INTEGER NOT NULL,
PRIMARY KEY (batch_id, line_number),
FOREIGN KEY(batch_id) REFERENCES batches(id) ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS idx_batch_item_checkpoints_batch_status
ON batch_item_checkpoints(batch_id, status);