Files
langchaingo/chains/testdata/TestConversation.httprr
2026-01-24 02:07:00 +03:00

138 lines
4.4 KiB
Plaintext
Generated

httprr trace v1
550 1664
POST https://api.openai.com/v1/chat/completions HTTP/1.1
Host: api.openai.com
User-Agent: langchaingo-httprr
Content-Length: 348
Authorization: Bearer test-api-key
Content-Type: application/json
{"model":"gpt-4.1-nano","messages":[{"role":"user","content":"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n\nHuman: Hi! I'm Jim\nAI:"}]}HTTP/2.0 200 OK
Content-Length: 865
Access-Control-Expose-Headers: X-Request-ID
Alt-Svc: h3=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Content-Type: application/json
Date: Thu, 22 Jan 2026 21:10:57 GMT
Openai-Organization: lcgo-tst
Openai-Processing-Ms: 435
Openai-Project: proj_pf0r5emOzUBDExmxgmWVPVjK
Openai-Version: 2020-10-01
Server: cloudflare
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Envoy-Upstream-Service-Time: 451
X-Openai-Proxy-Wasm: v0.1
X-Ratelimit-Limit-Requests: 30000
X-Ratelimit-Limit-Tokens: 150000000
X-Ratelimit-Remaining-Requests: 29999
X-Ratelimit-Remaining-Tokens: 149999927
X-Ratelimit-Reset-Requests: 2ms
X-Ratelimit-Reset-Tokens: 0s
X-Request-Id: req_c080b93441a74fbcb184222818aea779
{
"id": "chatcmpl-D0wF7XSFtOUqZ4KZjMNRnhO8drtyf",
"object": "chat.completion",
"created": 1769116257,
"model": "gpt-4.1-nano-2025-04-14",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello, Jim! Nice to meet you. How can I assist you today?",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 68,
"completion_tokens": 16,
"total_tokens": 84,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": "fp_fe84ea9799"
}
636 1623
POST https://api.openai.com/v1/chat/completions HTTP/1.1
Host: api.openai.com
User-Agent: langchaingo-httprr
Content-Length: 434
Authorization: Bearer test-api-key
Content-Type: application/json
{"model":"gpt-4.1-nano","messages":[{"role":"user","content":"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\nHuman: Hi! I'm Jim\nAI: Hello, Jim! Nice to meet you. How can I assist you today?\nHuman: What is my name?\nAI:"}]}HTTP/2.0 200 OK
Content-Length: 824
Access-Control-Expose-Headers: X-Request-ID
Alt-Svc: h3=":443"; ma=86400
Cf-Cache-Status: DYNAMIC
Content-Type: application/json
Date: Thu, 22 Jan 2026 21:10:59 GMT
Openai-Organization: lcgo-tst
Openai-Processing-Ms: 224
Openai-Project: proj_pf0r5emOzUBDExmxgmWVPVjK
Openai-Version: 2020-10-01
Server: cloudflare
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-Envoy-Upstream-Service-Time: 239
X-Openai-Proxy-Wasm: v0.1
X-Ratelimit-Limit-Requests: 30000
X-Ratelimit-Limit-Tokens: 150000000
X-Ratelimit-Remaining-Requests: 29999
X-Ratelimit-Remaining-Tokens: 149999907
X-Ratelimit-Reset-Requests: 2ms
X-Ratelimit-Reset-Tokens: 0s
X-Request-Id: req_7f94f7f8ad1f4a8ea662c2ba9cdde599
{
"id": "chatcmpl-D0wF8FqYlRynMIng0qQVs3TTEErmA",
"object": "chat.completion",
"created": 1769116258,
"model": "gpt-4.1-nano-2025-04-14",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Your name is Jim.",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 93,
"completion_tokens": 5,
"total_tokens": 98,
"prompt_tokens_details": {
"cached_tokens": 0,
"audio_tokens": 0
},
"completion_tokens_details": {
"reasoning_tokens": 0,
"audio_tokens": 0,
"accepted_prediction_tokens": 0,
"rejected_prediction_tokens": 0
}
},
"service_tier": "default",
"system_fingerprint": "fp_fe84ea9799"
}