OpenAI ⇄ Anthropic Converter

OpenAI Chat Completions और Anthropic Messages API formats के बीच message arrays convert करें। System messages, tool calls, image content blocks, multi-turn handle करता है। In-browser, कोई API keys नहीं।

यह किसके लिए है?

OpenAI की Chat Completions API और Anthropic की Messages API दोनों आपको multi-turn conversation भेजने देती हैं, लेकिन JSON को इतना अलग shape करती हैं कि provider switch करने पर prompts और tool-call traces cleanly drop in नहीं होते। Differences छोटे हैं (system message placement, tool-call vs tool-use, image block shape, role: 'tool' vs content में tool_result) लेकिन हर एक deadline के नीचे होने पर 10-minute rabbit hole है। यह converter translation handle करता है ताकि आप OpenAI conversation paste करें और Anthropic-shaped version back मिले (या उल्टा)।

क्या translate होता है

क्या translate नहीं होता

Common gotchas