AI API बंद होने से पहले migration audit कैसे पूरा करें
Dependencies, control requests, tool calls, streaming, errors, पुराने-नए path की तुलना, cutover और rollback वाला audit plan।
सिर्फ model या Base URL बदलना migration नहीं है। Official source, जांच की तारीख, पुराने और नए endpoint/model, shutdown date और owner लिखें। तारीख न हो तो unknown रखें।
Protocol, payload, tools, streaming, errors, prompts, SDK, services, cron, workflows, CI और secret names का inventory बनाएं। Sanitized cases में text, JSON, tool call, no-tool case, stream, 4xx और transient failure रखें। Exact wording नहीं, schema, arguments, result, stream end और retry compare करें।
पुराने और नए path को समान fixtures पर चलाएं। BetterToken transport test में https://www.bettertoken.ai/v1/chat/completions, Bearer Key और current Model ID को official guide के अनुसार उपयोग करें। यह model equivalence सिद्ध नहीं करता।
Cutover के लिए feature flag, owner, observation window, metrics और लिखित rollback condition चाहिए। दोनों contracts deploy करें, controlled traffic से शुरू करें, criteria pass होने पर बढ़ाएं और invariant टूटने पर rollback करें। Shutdown के बाद पुराना API वापस नहीं आता।
पांच artifacts अनिवार्य हैं: source/date, owner वाला inventory, versioned tests और dual run, हर difference का decision, measurable cutover/rollback runbook। केवल HTTP 200 पर status migration_in_progress ही रहेगा।
25-08-2026 स्रोत: https://developers.openai.com/api/docs/deprecations और https://docs.bettertoken.ai/api-reference/chat-completions।