|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + body: '{"messages": [{"role": "user", "content": "How much is 3 + 5?"}], "llm_providers": |
| 4 | + [{"provider": "anthropic", "model": "claude-opus-4-1", "is_custom": false, "context_length": |
| 5 | + null, "input_price": null, "output_price": null, "latency": null}], "metric": |
| 6 | + "accuracy", "max_model_depth": 1, "hash_content": true, "tools": [{"type": "function", |
| 7 | + "function": {"name": "add_fct", "description": "Add two numbers", "parameters": |
| 8 | + {"type": "object", "properties": {"a": {"type": "integer", "description": "The |
| 9 | + first number"}, "b": {"type": "integer", "description": "The second number"}}, |
| 10 | + "required": ["a", "b"]}}}]}' |
| 11 | + headers: |
| 12 | + Accept: |
| 13 | + - '*/*' |
| 14 | + Accept-Encoding: |
| 15 | + - gzip, deflate, zstd |
| 16 | + Connection: |
| 17 | + - keep-alive |
| 18 | + Content-Length: |
| 19 | + - '606' |
| 20 | + User-Agent: |
| 21 | + - Python-SDK/0.4.4 |
| 22 | + content-type: |
| 23 | + - application/json |
| 24 | + method: POST |
| 25 | + uri: https://api.notdiamond.ai/v2/modelRouter/modelSelect |
| 26 | + response: |
| 27 | + body: |
| 28 | + string: '{"detail":"Could not find valid API key"}' |
| 29 | + headers: |
| 30 | + CF-RAY: |
| 31 | + - 96fc5de6cf7ce00f-MIA |
| 32 | + Connection: |
| 33 | + - keep-alive |
| 34 | + Content-Type: |
| 35 | + - application/json |
| 36 | + Date: |
| 37 | + - Fri, 15 Aug 2025 23:10:41 GMT |
| 38 | + Server: |
| 39 | + - cloudflare |
| 40 | + Transfer-Encoding: |
| 41 | + - chunked |
| 42 | + alt-svc: |
| 43 | + - h3=":443"; ma=86400 |
| 44 | + cf-cache-status: |
| 45 | + - DYNAMIC |
| 46 | + rndr-id: |
| 47 | + - dff267e2-2fc0-48c5 |
| 48 | + vary: |
| 49 | + - Accept-Encoding |
| 50 | + x-render-origin-server: |
| 51 | + - uvicorn |
| 52 | + x-request-id: |
| 53 | + - dff267e2-2fc0-48c5 |
| 54 | + status: |
| 55 | + code: 401 |
| 56 | + message: Unauthorized |
| 57 | +- request: |
| 58 | + body: '{"max_tokens":200,"messages":[{"role":"user","content":"How much is 3 + |
| 59 | + 5?"}],"model":"claude-opus-4-1","tools":[{"name":"add_fct","description":"Add |
| 60 | + two numbers","input_schema":{"type":"object","properties":{"a":{"type":"integer","description":"The |
| 61 | + first number"},"b":{"type":"integer","description":"The second number"}},"required":["a","b"]}}]}' |
| 62 | + headers: |
| 63 | + accept: |
| 64 | + - application/json |
| 65 | + accept-encoding: |
| 66 | + - gzip, deflate, zstd |
| 67 | + anthropic-version: |
| 68 | + - '2023-06-01' |
| 69 | + connection: |
| 70 | + - keep-alive |
| 71 | + content-length: |
| 72 | + - '347' |
| 73 | + content-type: |
| 74 | + - application/json |
| 75 | + host: |
| 76 | + - api.anthropic.com |
| 77 | + user-agent: |
| 78 | + - Anthropic/Python 0.49.0 |
| 79 | + x-api-key: |
| 80 | + - REDACTED |
| 81 | + x-stainless-arch: |
| 82 | + - arm64 |
| 83 | + x-stainless-async: |
| 84 | + - 'false' |
| 85 | + x-stainless-lang: |
| 86 | + - python |
| 87 | + x-stainless-os: |
| 88 | + - MacOS |
| 89 | + x-stainless-package-version: |
| 90 | + - 0.49.0 |
| 91 | + x-stainless-read-timeout: |
| 92 | + - '120.0' |
| 93 | + x-stainless-retry-count: |
| 94 | + - '0' |
| 95 | + x-stainless-runtime: |
| 96 | + - CPython |
| 97 | + x-stainless-runtime-version: |
| 98 | + - 3.12.6 |
| 99 | + x-stainless-timeout: |
| 100 | + - NOT_GIVEN |
| 101 | + method: POST |
| 102 | + uri: https://api.anthropic.com/v1/messages |
| 103 | + response: |
| 104 | + body: |
| 105 | + string: '{"id":"msg_01MLNm6MvsAe345rsrZLmQ6R","type":"message","role":"assistant","model":"claude-opus-4-1-20250805","content":[{"type":"text","text":"I''ll |
| 106 | + help you add those two numbers together."},{"type":"tool_use","id":"toolu_01FnzqgbR95M2QVVRcGmxnCz","name":"add_fct","input":{"a":3,"b":5}}],"stop_reason":"tool_use","stop_sequence":null,"usage":{"input_tokens":411,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":82,"service_tier":"standard"}}' |
| 107 | + headers: |
| 108 | + CF-RAY: |
| 109 | + - 96fc5de81b7aed33-MIA |
| 110 | + Connection: |
| 111 | + - keep-alive |
| 112 | + Content-Type: |
| 113 | + - application/json |
| 114 | + Date: |
| 115 | + - Fri, 15 Aug 2025 23:10:44 GMT |
| 116 | + Server: |
| 117 | + - cloudflare |
| 118 | + Transfer-Encoding: |
| 119 | + - chunked |
| 120 | + X-Robots-Tag: |
| 121 | + - none |
| 122 | + anthropic-organization-id: |
| 123 | + - a2610b2c-742e-455d-9552-6abe105b2a44 |
| 124 | + anthropic-ratelimit-input-tokens-limit: |
| 125 | + - '2000000' |
| 126 | + anthropic-ratelimit-input-tokens-remaining: |
| 127 | + - '2000000' |
| 128 | + anthropic-ratelimit-input-tokens-reset: |
| 129 | + - '2025-08-15T23:10:42Z' |
| 130 | + anthropic-ratelimit-output-tokens-limit: |
| 131 | + - '400000' |
| 132 | + anthropic-ratelimit-output-tokens-remaining: |
| 133 | + - '400000' |
| 134 | + anthropic-ratelimit-output-tokens-reset: |
| 135 | + - '2025-08-15T23:10:44Z' |
| 136 | + anthropic-ratelimit-requests-limit: |
| 137 | + - '4000' |
| 138 | + anthropic-ratelimit-requests-remaining: |
| 139 | + - '3999' |
| 140 | + anthropic-ratelimit-requests-reset: |
| 141 | + - '2025-08-15T23:10:42Z' |
| 142 | + anthropic-ratelimit-tokens-limit: |
| 143 | + - '2400000' |
| 144 | + anthropic-ratelimit-tokens-remaining: |
| 145 | + - '2400000' |
| 146 | + anthropic-ratelimit-tokens-reset: |
| 147 | + - '2025-08-15T23:10:42Z' |
| 148 | + cf-cache-status: |
| 149 | + - DYNAMIC |
| 150 | + content-length: |
| 151 | + - '547' |
| 152 | + request-id: |
| 153 | + - req_011CSALfjb98PLc3UXmaXYxf |
| 154 | + strict-transport-security: |
| 155 | + - max-age=31536000; includeSubDomains; preload |
| 156 | + via: |
| 157 | + - 1.1 google |
| 158 | + status: |
| 159 | + code: 200 |
| 160 | + message: OK |
| 161 | +version: 1 |
0 commit comments