|
| 1 | +interactions: |
| 2 | +- request: |
| 3 | + headers: |
| 4 | + accept: |
| 5 | + - application/json |
| 6 | + accept-encoding: |
| 7 | + - gzip, deflate |
| 8 | + connection: |
| 9 | + - keep-alive |
| 10 | + content-length: |
| 11 | + - '215' |
| 12 | + content-type: |
| 13 | + - application/json |
| 14 | + host: |
| 15 | + - api.anthropic.com |
| 16 | + method: POST |
| 17 | + parsed_body: |
| 18 | + max_tokens: 4096 |
| 19 | + messages: |
| 20 | + - content: |
| 21 | + - text: 'What is the name of color #FF0000' |
| 22 | + type: text |
| 23 | + role: user |
| 24 | + - content: It's name is |
| 25 | + role: assistant |
| 26 | + model: claude-3-5-sonnet-latest |
| 27 | + stream: false |
| 28 | + uri: https://api.anthropic.com/v1/messages?beta=true |
| 29 | + response: |
| 30 | + headers: |
| 31 | + connection: |
| 32 | + - keep-alive |
| 33 | + content-length: |
| 34 | + - '601' |
| 35 | + content-type: |
| 36 | + - application/json |
| 37 | + strict-transport-security: |
| 38 | + - max-age=31536000; includeSubDomains; preload |
| 39 | + transfer-encoding: |
| 40 | + - chunked |
| 41 | + parsed_body: |
| 42 | + content: |
| 43 | + - text: |2- |
| 44 | + Red. #FF0000 is the hexadecimal color code for pure red in RGB color space, where: |
| 45 | + - FF represents the maximum value (255) for the red channel |
| 46 | + - 00 represents no green |
| 47 | + - 00 represents no blue |
| 48 | + type: text |
| 49 | + id: msg_0139bvQ8xYiX5eFuQo2kt2uJ |
| 50 | + model: claude-3-5-sonnet-20241022 |
| 51 | + role: assistant |
| 52 | + stop_reason: end_turn |
| 53 | + stop_sequence: null |
| 54 | + type: message |
| 55 | + usage: |
| 56 | + cache_creation: |
| 57 | + ephemeral_1h_input_tokens: 0 |
| 58 | + ephemeral_5m_input_tokens: 0 |
| 59 | + cache_creation_input_tokens: 0 |
| 60 | + cache_read_input_tokens: 0 |
| 61 | + input_tokens: 21 |
| 62 | + output_tokens: 58 |
| 63 | + service_tier: standard |
| 64 | + status: |
| 65 | + code: 200 |
| 66 | + message: OK |
| 67 | +- request: |
| 68 | + headers: |
| 69 | + accept: |
| 70 | + - application/json |
| 71 | + accept-encoding: |
| 72 | + - gzip, deflate |
| 73 | + connection: |
| 74 | + - keep-alive |
| 75 | + content-length: |
| 76 | + - '186' |
| 77 | + content-type: |
| 78 | + - application/json |
| 79 | + host: |
| 80 | + - api.anthropic.com |
| 81 | + method: POST |
| 82 | + parsed_body: |
| 83 | + max_tokens: 4096 |
| 84 | + messages: |
| 85 | + - content: |
| 86 | + - text: Hello |
| 87 | + type: text |
| 88 | + role: user |
| 89 | + - content: It's name is |
| 90 | + role: assistant |
| 91 | + model: claude-3-5-sonnet-latest |
| 92 | + stream: true |
| 93 | + uri: https://api.anthropic.com/v1/messages?beta=true |
| 94 | + response: |
| 95 | + body: |
| 96 | + string: |+ |
| 97 | + event: message_start |
| 98 | + data: {"type":"message_start","message":{"id":"msg_01LrWvsWg9nVGu2ZAabNiKgH","type":"message","role":"assistant","model":"claude-3-5-sonnet-20241022","content":[],"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":12,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":0,"ephemeral_1h_input_tokens":0},"output_tokens":3,"service_tier":"standard"}} } |
| 99 | +
|
| 100 | + event: content_block_start |
| 101 | + data: {"type":"content_block_start","index":0,"content_block":{"type":"text","text":""} } |
| 102 | +
|
| 103 | + event: content_block_delta |
| 104 | + data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" Claude. It"} } |
| 105 | +
|
| 106 | + event: content_block_delta |
| 107 | + data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" was created by Anthropic and aims to be direct"} } |
| 108 | +
|
| 109 | + event: ping |
| 110 | + data: {"type": "ping"} |
| 111 | +
|
| 112 | + event: content_block_delta |
| 113 | + data: {"type":"content_block_delta","index":0,"delta":{"type":"text_delta","text":" and honest in its interactions."} } |
| 114 | +
|
| 115 | + event: ping |
| 116 | + data: {"type": "ping"} |
| 117 | +
|
| 118 | + event: content_block_stop |
| 119 | + data: {"type":"content_block_stop","index":0 } |
| 120 | +
|
| 121 | + event: ping |
| 122 | + data: {"type": "ping"} |
| 123 | +
|
| 124 | + event: ping |
| 125 | + data: {"type": "ping"} |
| 126 | +
|
| 127 | + event: message_delta |
| 128 | + data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"input_tokens":12,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":23} } |
| 129 | +
|
| 130 | + event: message_stop |
| 131 | + data: {"type":"message_stop" } |
| 132 | +
|
| 133 | + headers: |
| 134 | + cache-control: |
| 135 | + - no-cache |
| 136 | + connection: |
| 137 | + - keep-alive |
| 138 | + content-type: |
| 139 | + - text/event-stream; charset=utf-8 |
| 140 | + strict-transport-security: |
| 141 | + - max-age=31536000; includeSubDomains; preload |
| 142 | + transfer-encoding: |
| 143 | + - chunked |
| 144 | + status: |
| 145 | + code: 200 |
| 146 | + message: OK |
| 147 | +version: 1 |
| 148 | +... |
0 commit comments