mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-08-25 11:10:02 -04:00
70 lines
2.3 KiB
Plaintext
Generated
70 lines
2.3 KiB
Plaintext
Generated
httprr trace v1
|
|
561 1756
|
|
POST https://api.openai.com/v1/chat/completions HTTP/1.1
|
|
Host: api.openai.com
|
|
User-Agent: langchaingo-httprr
|
|
Content-Length: 359
|
|
Authorization: Bearer test-api-key
|
|
Content-Type: application/json
|
|
|
|
{"model":"gpt-4.1-nano","messages":[{"role":"user","content":"Write \n\u003cdocument\u003e\n\u003ccontent\u003efoo\u003c/content\u003e\n\n\u003c/document\u003e\n\n\n\n\u003cdocument\u003e\n\u003ccontent\u003ebar\u003c/content\u003e\n\n\u003c/document\u003e\n\n\n\n\u003cdocument\u003e\n\u003ccontent\u003ebaz\u003c/content\u003e\n\n\u003c/document\u003e\n"}]}HTTP/2.0 200 OK
|
|
Content-Length: 957
|
|
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:43 GMT
|
|
Openai-Organization: lcgo-tst
|
|
Openai-Processing-Ms: 408
|
|
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: 424
|
|
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: 149999960
|
|
X-Ratelimit-Reset-Requests: 2ms
|
|
X-Ratelimit-Reset-Tokens: 0s
|
|
X-Request-Id: req_afb4280ebbad4fb38ba36a712ad75def
|
|
|
|
{
|
|
"id": "chatcmpl-D0wFqL6TqQNFJTlEKk3UICBv1JeNA",
|
|
"object": "chat.completion",
|
|
"created": 1769116302,
|
|
"model": "gpt-4.1-nano-2025-04-14",
|
|
"choices": [
|
|
{
|
|
"index": 0,
|
|
"message": {
|
|
"role": "assistant",
|
|
"content": "<document>\n<content>foo</content>\n</document>\n\n<document>\n<content>bar</content>\n</document>\n\n<document>\n<content>baz</content>\n</document>",
|
|
"refusal": null,
|
|
"annotations": []
|
|
},
|
|
"logprobs": null,
|
|
"finish_reason": "stop"
|
|
}
|
|
],
|
|
"usage": {
|
|
"prompt_tokens": 48,
|
|
"completion_tokens": 39,
|
|
"total_tokens": 87,
|
|
"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"
|
|
}
|