Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

मॉडल डायग्नोस्टिक्स

Claude Relay Test

जांचें कि क्या Claude relay streaming, tool calls, thinking signatures और API प्रोटोकॉल को बनाए रखता है।

  • प्रोटोकॉल संगतता
  • समूहित निष्कर्ष
  • एक्सपोर्ट करने योग्य रिपोर्ट्स
ऑनलाइन टेस्ट

अपने endpoint पर probes चलाएँ

आपकी key sandbox के लिए sealed है, एक बार claimed होती है, मिटा दी जाती है और कभी stored या logged नहीं की जाती। ऐसी key का उपयोग करें जिसे आप revoke कर सकें।

POST https://…/v1/messages

अतिरिक्त headers

अधिकतम 8। मान key के साथ sealed होते हैं और कभी stored नहीं किए जाते; Authorization हमेशा key field से आता है।

32 प्रोब्स · आमतौर पर कुछ सेंट · कुछ मिनट

अपने results को समझें

एक illustrative report दिखाता है कि protocol checks कैसे grouped और scored होते हैं।

एक नमूना रिपोर्ट देखें
कवरेज

32 प्रोब्स, 5 क्षेत्रों में

हर प्रोब एक छोटा अनुरोध है, जिसे सार्वजनिक Anthropic Messages API contract के विरुद्ध परखा जाता है। यहाँ कुछ भी उत्तर की गुणवत्ता को नहीं मापता; उसके लिए Claude nerf check का उपयोग करें।

01

Response structure

12
  • Streaming event sequenceA streamed answer must follow the documented event order and carry the same fields as the official API.
  • Non-streaming message shapeA plain JSON answer must have the documented fields: id, type, role, model, content, stop_reason, usage.
  • Usage accountingToken counts must be present, consistent between streaming and non-streaming, and not inflated by hidden text.
  • Response headersThe official API returns a request-id header on every answer.
  • max_tokens is honouredA tiny max_tokens must cut the answer short with stop_reason max_tokens and a small output count.
  • Stop sequencesA stop sequence must end the answer, be reported as stop_sequence, and not appear in the text.
  • System promptThe system field must reach the model. A relay that drops it answers the user question instead.
  • Conversation historyEarlier turns must reach the model: it has to repeat a secret word from the first message.
  • Tool callingA forced tool call must return a tool_use block with an id, the tool name and structured input.
  • Tool result round tripA tool_use followed by a tool_result must be accepted and the result used in the answer.
  • Streaming tool callA streamed tool call must assemble into valid JSON input and end with stop_reason tool_use.
  • Token counting endpointPOST /v1/messages/count_tokens should exist and return input_tokens. Many relays leave it out; that is only a warning.
02

Thinking and signature

3
  • Thinking blocks and signatureWith thinking on, the stream must carry a thinking block and a signature. Relays often drop or fake them.
  • Thinking in a plain answerA non-streaming answer with thinking on must hold a thinking block with text and a signature.
  • Thinking round tripThe thinking block from one answer is sent back in the next request. A forged signature is refused by the real API.
03

Images and documents

6
  • Image understandingA generated two-colour image is sent; the model must name both colours. A relay that strips images cannot.
  • Two images in one messageBoth images must reach the model, in order.
  • Large imageA 1000 by 1000 image must be accepted and read, not refused or silently shrunk to nothing.
  • PDF understandingA generated one-page PDF holds a random code; the model must read it back.
  • Multi-page PDFA three-page PDF holds the code on its last page; the whole document must reach the model.
  • Plain-text documentA text document block must be accepted and read.
04

Model identity

1
  • Model identityAsks who trained the model. An answer naming another vendor is a strong sign of substitution.
05

Error handling

10
  • Wrong key is refusedA made-up key must be refused with 401 or 403, not answered and not a server error.
  • Invalid max_tokensA non-numeric max_tokens must be rejected with 400 or 422.
  • Invalid thinking settingAn unknown thinking type must be rejected with 400 or 422.
  • Thinking budget too smallA thinking budget below the minimum must be rejected with 400 or 422.
  • Empty messagesAn empty messages list must be rejected with 400 or 422.
  • Invalid roleA message role the API does not define must be rejected with 400 or 422.
  • Missing modelA request without a model must be rejected with 400 or 422, not given a default.
  • Broken JSON bodyA body that is not valid JSON must be rejected with 400 or 422.
  • Temperature out of rangeA temperature above 1 must be rejected with 400 or 422, not clamped silently.
  • Unknown model nameA model that does not exist must be refused (400 or 404), not silently served by another model.

Claude nerf जांच →

Agent कौशल

इसे अपने Agent से चलाएँ

यही प्रोब्स एक Skill के रूप में भी उपलब्ध हैं। अनुरोध सीधे आपकी मशीन से आपके endpoint तक जाते हैं।

अपने Agent से पूछें
Use the claude-relay-test skill to check my Claude relay at https://relay.example.com using model claude-opus-5-5.
या इसे स्वयं चलाएँ
export CLAUDE_RELAY_API_KEY=...
node scripts/check.mjs --base-url https://relay.example.com --model claude-opus-5-5 --out ./out

FAQ

"consistent" परिणाम क्या सिद्ध करता है?

कि endpoint ने इन प्रोब्स पर दस्तावेज़ित Messages API की तरह व्यवहार किया। इससे यह सिद्ध नहीं होता कि model कहाँ चलता है, और इससे उत्तर की गुणवत्ता के बारे में कुछ नहीं पता चलता।

Claude nerf check से इसमें क्या अंतर है?

nerf check यह पूछता है कि model पर्याप्त मजबूत है या नहीं। यह test पूछता है कि endpoint असली API की तरह व्यवहार करता है या नहीं: protocol, thinking signature, images, PDFs, error codes।

प्रोब्स की लागत क्यों आती है?

ये वास्तविक अनुरोध हैं: कुछ छोटे उत्तर और एक छोटा thinking उत्तर। आमतौर पर कुछ सेंट।

मेरी key का क्या होता है?

इसे sandbox run के लिए sealed कर दिया जाता है, एक बार claimed किया जाता है, फिर मिटा दिया जाता है। इसे store या log नहीं किया जाता, और reports में केवल header names दिखते हैं।

मेरे relay को Bedrock या Vertex क्यों दिखाया गया?

वे clouds message ids को अलग तरह से prefix करते हैं। यह एक hint है, कभी failure नहीं।