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

70 lines
2.4 KiB
Plaintext
Generated

httprr trace v1
698 1750
POST https://api.openai.com/v1/chat/completions HTTP/1.1
Host: api.openai.com
User-Agent: langchaingo-httprr
Content-Length: 496
Authorization: Bearer test-api-key
Content-Type: application/json
{"model":"gpt-4.1-nano","messages":[{"role":"user","content":"Translate a math problem into a expression that can be evaluated as Starlark.\nUse the output of running this code to answer the question.\n\n---\nQuestion: (Question with math problem.)\n```starlark\n$(single line expression that solves the problem)\n```\n\n---\nQuestion: What is 37593 * 67?\n```starlark\n37593 * 67\n```\n\n---\nQuestion: what is forty plus three? take that then multiply it by ten thousand divided by 7324.3\n"}]}HTTP/2.0 200 OK
Content-Length: 951
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:10 GMT
Openai-Organization: lcgo-tst
Openai-Processing-Ms: 646
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: 663
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: 149999895
X-Ratelimit-Reset-Requests: 2ms
X-Ratelimit-Reset-Tokens: 0s
X-Request-Id: req_47b090aef6044003af33f6e7baff0722
{
"id": "chatcmpl-D0wFJ7pZmSnr1EhzOGaWtHzOpBCQ7",
"object": "chat.completion",
"created": 1769116269,
"model": "gpt-4.1-nano-2025-04-14",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Question: what is forty plus three? take that then multiply it by ten thousand divided by 7324.3\n```starlark\n(40 + 3) * 10000 / 7324.3\n```",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 110,
"completion_tokens": 47,
"total_tokens": 157,
"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"
}