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

70 lines
2.3 KiB
Plaintext
Generated

httprr trace v1
679 1616
POST https://api.openai.com/v1/chat/completions HTTP/1.1
Host: api.openai.com
User-Agent: langchaingo-httprr
Content-Length: 477
Authorization: Bearer test-api-key
Content-Type: application/json
{"model":"gpt-4.1-nano","messages":[{"role":"user","content":"Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.\n\n\n\u003cdocument\u003e\n\u003ccontent\u003efoo is 34\u003c/content\u003e\n\n\u003c/document\u003e\n\n\n\n\u003cdocument\u003e\n\u003ccontent\u003ebar is 1\u003c/content\u003e\n\n\u003c/document\u003e\n\n\nQuestion: what is foo? \nHelpful Answer:"}]}HTTP/2.0 200 OK
Content-Length: 817
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:11:41 GMT
Openai-Organization: lcgo-tst
Openai-Processing-Ms: 196
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: 220
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: 149999920
X-Ratelimit-Reset-Requests: 2ms
X-Ratelimit-Reset-Tokens: 0s
X-Request-Id: req_bb6b41025cb94b9a88d5db9c95a5575c
{
"id": "chatcmpl-D0wFp8EU75RbMf8r63fy5bOofTADJ",
"object": "chat.completion",
"created": 1769116301,
"model": "gpt-4.1-nano-2025-04-14",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "foo is 34.",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 85,
"completion_tokens": 5,
"total_tokens": 90,
"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"
}