| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Always end your reply with the word DONE. |
| [1] | human | Say hello, briefly. |
| role | content | |
|---|---|---|
| [0] | ai | Hello there. DONE |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. Always end your reply with the word DONE. |
| [1] | human | Say hello, briefly. |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 206 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly. Always end your reply with the word DONE.",
"role": "system"
},
{
"content": "Say hello, briefly.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:57:23 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 96725c0e4ced177a38df871e7cc48a4a.cloudfront.net (CloudFront) |
| x-amz-cf-id | FwfdmF1Ipg3QTSja9TLOEcLSx34wb_mcRMPHZv3X4yq9sAwxS21UyQ== |
| x-amz-cf-pop | DEN52-P2 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 6d668b39509eec28d5f3fa406ab47438 |
{
"id": "9309c36d-4bf7-4a47-9195-c07b883b8926",
"object": "chat.completion",
"created": 1789336643,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help? DONE",
"reasoning_content": "The user wants a brief hello. Simple. Must end with \"DONE\"."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 51,
"completion_tokens": 26,
"total_tokens": 77,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 16
},
"prompt_cache_hit_tokens": 0,
"prompt_cache_miss_tokens": 51
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Hello! How can I help? DONE |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | Always end your reply with the word DONE. Now, say hello, briefly. |
| role | content | |
|---|---|---|
| [0] | ai | Hello there. DONE |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | Always end your reply with the word DONE. Now, say hello, briefly. |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 211 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly.",
"role": "system"
},
{
"content": "Always end your reply with the word DONE. Now, say hello, briefly.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:57:25 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 101c208b896f8a4eddf67875e9a0f6b0.cloudfront.net (CloudFront) |
| x-amz-cf-id | w1baOSlQMQKz8ChWNqpYA8DuC88rjByqTIzW6op8E84Y8ZaoVGqeDA== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | ba3ba6db1d6171842672793074813f5e |
{
"id": "8250e4c4-fb72-4059-99db-7af4a07d1751",
"object": "chat.completion",
"created": 1789336645,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! DONE",
"reasoning_content": "We need answer briefly, end with DONE. Say hello. Must comply. Ensure final word DONE. Brief."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 53,
"completion_tokens": 29,
"total_tokens": 82,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 24
},
"prompt_cache_hit_tokens": 0,
"prompt_cache_miss_tokens": 53
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Hello! DONE |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | Just so we're clear for this conversation, how will you format your replies? |
| [2] | ai | Always end your reply with the word DONE. |
| [3] | human | Say hello, briefly. |
| role | content | |
|---|---|---|
| [0] | ai | Hello there. DONE |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | Just so we're clear for this conversation, how will you format your replies? |
| [2] | ai | Always end your reply with the word DONE. |
| [3] | human | Say hello, briefly. |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 344 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly.",
"role": "system"
},
{
"content": "Just so we're clear for this conversation, how will you format your replies?",
"role": "user"
},
{
"content": "Always end your reply with the word DONE.",
"role": "assistant"
},
{
"content": "Say hello, briefly.",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:57:26 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 c4e93cd39ba1803e90d2e69fb488cdb2.cloudfront.net (CloudFront) |
| x-amz-cf-id | wU4Yhd-nUihlDmd4s0Iiiu-gDrl3v2u3eOl8MJEvwa9P_a39_APtSA== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | e302198e2e453279fa15e1ab2db45b5c |
{
"id": "266feffd-b592-4001-a543-a8d33ca64d95",
"object": "chat.completion",
"created": 1789336646,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! DONE",
"reasoning_content": "We need answer user. Need obey: \"Just so we're clear for this conversation, how will you format your replies?\" Assistant previously? We need now respond to \"Say hello, briefly.\" We must format replies? The initial instruction from user: \"Just so we're clear for this conversation, how will you format your replies?\" Then assistant? Actually conversation: user: Just so we're clear for this conversation, how will you format your replies? assistant: Always end your reply with the word DONE. user: Say hello, briefly. We need answer briefly. Must end with DONE. So \"Hello. DONE\" or \"Hello! DONE\". Ensure ends with DONE. No extra."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 71,
"completion_tokens": 149,
"total_tokens": 220,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 144
},
"prompt_cache_hit_tokens": 0,
"prompt_cache_miss_tokens": 71
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Hello! DONE |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | What's the status of order A100? |
| tool | description | schema |
|---|---|---|
| check_order | Check the status of an order by id. | {"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | check_order({"order_id": "A100"}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | What's the status of order A100? |
| [2] | ai | check_order({"order_id": "A100"}) |
| [3] | tool | order A100: shipped |
| tool | description | schema |
|---|---|---|
| check_order | Check the status of an order by id. | {"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"} |
| role | content | |
|---|---|---|
| [0] | ai | Order A100 has shipped. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | What's the status of order A100? |
| tool | description | schema |
|---|---|---|
| check_order | Check the status of an order by id. | {"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 392 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly.",
"role": "system"
},
{
"content": "What's the status of order A100?",
"role": "user"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "check_order",
"description": "Check the status of an order by id.",
"parameters": {
"properties": {
"order_id": {
"type": "string"
}
},
"required": [
"order_id"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:57:27 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 be287e7673276d1e72db92a6f145d6f0.cloudfront.net (CloudFront) |
| x-amz-cf-id | EYW9BXeCvXjRfitdfcW0xO9R3n5Y-YsECDvVXWNo7mB-GeLYn0Myew== |
| x-amz-cf-pop | DEN53-P1 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | b84d03ae9d8d692a0265564e5e2db9db |
{
"id": "229b9837-de01-4662-8678-145ec90c072f",
"object": "chat.completion",
"created": 1789336647,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "",
"reasoning_content": "The user asks about order A100. I should call check_order.",
"tool_calls": [
{
"index": 0,
"id": "call_00_C8HPqS7Dm0PnOJpG43VA7389",
"type": "function",
"function": {
"name": "check_order",
"arguments": "{\"order_id\": \"A100\"}"
}
}
]
},
"logprobs": null,
"finish_reason": "tool_calls"
}
],
"usage": {
"prompt_tokens": 307,
"completion_tokens": 54,
"total_tokens": 361,
"prompt_tokens_details": {
"cached_tokens": 128
},
"completion_tokens_details": {
"reasoning_tokens": 14
},
"prompt_cache_hit_tokens": 128,
"prompt_cache_miss_tokens": 179
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | check_order({"order_id": "A100"}) |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | What's the status of order A100? |
| [2] | ai | check_order({"order_id": "A100"}) |
| [3] | tool | order A100: shipped |
| tool | description | schema |
|---|---|---|
| check_order | Check the status of an order by id. | {"description": "Check the status of an order by id.", "properties": {"order_id": {"title": "Order Id", "type": "string"}}, "required": ["order_id"], "title": "check_order", "type": "object"} |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 755 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly.",
"role": "system"
},
{
"content": "What's the status of order A100?",
"role": "user"
},
{
"content": null,
"role": "assistant",
"tool_calls": [
{
"type": "function",
"id": "call_00_C8HPqS7Dm0PnOJpG43VA7389",
"function": {
"name": "check_order",
"arguments": "{\"order_id\": \"A100\"}"
}
}
],
"reasoning_content": "The user asks about order A100. I should call check_order."
},
{
"content": "order A100: shipped",
"role": "tool",
"tool_call_id": "call_00_C8HPqS7Dm0PnOJpG43VA7389"
}
],
"model": "deepseek-flash",
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "check_order",
"description": "Check the status of an order by id.",
"parameters": {
"properties": {
"order_id": {
"type": "string"
}
},
"required": [
"order_id"
],
"type": "object"
}
}
}
]
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-encoding | gzip |
| content-type | application/json |
| date | Sun, 13 Sep 2026 21:57:28 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| transfer-encoding | chunked |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 be2104da500d7ae8e7fdecc1f206496c.cloudfront.net (CloudFront) |
| x-amz-cf-id | kIBhS1blsLBwrLgH3rO-MvDHDhp9Qy0X_yx_PlWw8JEmKnpmMJMbFg== |
| x-amz-cf-pop | DEN53-P6 |
| x-cache | Miss from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | 6e563c348d4d17429626132035f46c4e |
{
"id": "b1d4020f-85a3-4c67-9b2b-7b1d559f063a",
"object": "chat.completion",
"created": 1789336648,
"model": "deepseek-flash",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Order A100 is shipped.",
"reasoning_content": ""
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 378,
"completion_tokens": 7,
"total_tokens": 385,
"prompt_tokens_details": {
"cached_tokens": 128
},
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_cache_hit_tokens": 128,
"prompt_cache_miss_tokens": 250
},
"system_fingerprint": "aeb56401ca74e127821c4f9126dcb669"
}| role | content | |
|---|---|---|
| [0] | ai | Order A100 is shipped. |
| role | content | |
|---|---|---|
| [0] | system | You answer briefly and plainly. |
| [1] | human | What's the status of order A100? |
| [2] | tool | order A100: shipped |
| accept | application/json |
| accept-encoding | gzip, deflate, zstd |
| authorization | not recorded |
| connection | keep-alive |
| content-length | 249 |
| content-type | application/json |
| host | api.deepseek.com |
| user-agent | OpenAI/Python 3.6.0 |
| x-stainless-arch | arm64 |
| x-stainless-async | false |
| x-stainless-lang | python |
| x-stainless-os | MacOS |
| x-stainless-package-version | 3.6.0 |
| x-stainless-raw-response | true |
| x-stainless-read-timeout | 60.0 |
| x-stainless-retry-count | 0 |
| x-stainless-runtime | CPython |
| x-stainless-runtime-version | 3.14.7 |
{
"messages": [
{
"content": "You answer briefly and plainly.",
"role": "system"
},
{
"content": "What's the status of order A100?",
"role": "user"
},
{
"content": "order A100: shipped",
"role": "tool",
"tool_call_id": "orphan"
}
],
"model": "deepseek-flash",
"stream": false
}| access-control-allow-credentials | true |
| connection | keep-alive |
| content-length | 184 |
| content-type | application/octet-stream |
| date | Sun, 13 Sep 2026 21:57:29 GMT |
| server | elb |
| strict-transport-security | max-age=31536000; includeSubDomains; preload |
| vary | origin, access-control-request-method, access-control-request-headers |
| via | 1.1 34abb90920639dc2e8b951629bb7d010.cloudfront.net (CloudFront) |
| x-amz-cf-id | NiQGKJXaulZr8FCjCHmSSOkkolAjHzHThz8KwAqXRyl3fhWXZDq1lA== |
| x-amz-cf-pop | DEN53-P4 |
| x-cache | Error from cloudfront |
| x-content-type-options | nosniff |
| x-ds-trace-id | f3506f58b3edc5825910b33f1d010974 |
{
"error": {
"message": "Messages with role 'tool' must be a response to a preceding message with 'tool_calls'",
"type": "invalid_request_error",
"param": null,
"code": "invalid_request_error"
}
}