Created
November 21, 2025 14:12
-
-
Save mariofusco/61a39f444d4038b0ce77a6fb69baa546 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2025-11-21 14:09:26 [main] dev.langchain4j.http.client.log.HttpRequestLogger.log() | |
| INFO: HTTP request: | |
| - method: POST | |
| - url: https://api.openai.com/v1/chat/completions | |
| - headers: [Authorization: Beare...EA], [User-Agent: langchain4j-openai], [Content-Type: application/json] | |
| - body: { | |
| "model" : "gpt-4o-mini", | |
| "messages" : [ { | |
| "role" : "user", | |
| "content" : "Count the number of eggs mentioned in this sentence:\n|||I have ten eggs in my basket and four in my pocket.|||\nYou must answer strictly in the following format: integer number" | |
| } ], | |
| "temperature" : 0.0, | |
| "stream" : false, | |
| "tools" : [ { | |
| "type" : "function", | |
| "function" : { | |
| "name" : "sumEggs", | |
| "description" : "calculates the sum of two integers representing egg counts", | |
| "parameters" : { | |
| "type" : "object", | |
| "properties" : { | |
| "arg0" : { | |
| "type" : "integer" | |
| }, | |
| "arg1" : { | |
| "type" : "integer" | |
| } | |
| }, | |
| "required" : [ "arg0", "arg1" ] | |
| } | |
| } | |
| } ], | |
| "parallel_tool_calls" : false | |
| } | |
| 2025-11-21 14:09:28 [main] dev.langchain4j.http.client.log.HttpResponseLogger.log() | |
| INFO: HTTP response: | |
| - status code: 200 | |
| - headers: [:status: 200], [access-control-expose-headers: X-Request-ID], [alt-svc: h3=":443"; ma=86400], [cf-cache-status: DYNAMIC], [cf-ray: 9a206be94d51ed18-MXP], [content-type: application/json], [date: Fri, 21 Nov 2025 13:09:28 GMT], [openai-organization: mario-ongyc9], [openai-processing-ms: 899], [openai-project: proj_KZYq48CtyrKPUbWMmgU2ctvL], [openai-version: 2020-10-01], [server: cloudflare], [set-cookie: [__cf_bm=IkL4JMqXMoPQILVKC09eMucoXQPLGJ4.hRE6iEw3C6c-1763730568-1.0.1.1-PvKzhc2MAnntg3rpr5vluFScgbtva6D3m8Gzj5FedZE4jx8o51THFUNqlhmsXfbGsj7O7uhdJYlt6ZVOlMZW7o7tvIfYXfh3vxFLn5qDvu8; path=/; expires=Fri, 21-Nov-25 13:39:28 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=MNL2x4nTeVoZa2qPqAwXNJpSr5cs2Lgzxv8Uj.BE9Kc-1763730568305-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None]], [strict-transport-security: max-age=31536000; includeSubDomains; preload], [x-content-type-options: nosniff], [x-envoy-upstream-service-time: 1112], [x-openai-proxy-wasm: v0.1], [x-ratelimit-limit-requests: 10000], [x-ratelimit-limit-tokens: 200000], [x-ratelimit-remaining-requests: 9999], [x-ratelimit-remaining-tokens: 199954], [x-ratelimit-reset-requests: 8.64s], [x-ratelimit-reset-tokens: 13ms], [x-request-id: req_313120ae0698419892cca790bd6c6d7c] | |
| - body: { | |
| "id": "chatcmpl-CeLB9MpBMCQqJOpkRMgy3ceivXIF0", | |
| "object": "chat.completion", | |
| "created": 1763730567, | |
| "model": "gpt-4o-mini-2024-07-18", | |
| "choices": [ | |
| { | |
| "index": 0, | |
| "message": { | |
| "role": "assistant", | |
| "content": null, | |
| "tool_calls": [ | |
| { | |
| "id": "call_NVWNEcltaSaqv4SVymilPE5l", | |
| "type": "function", | |
| "function": { | |
| "name": "sumEggs", | |
| "arguments": "{\"arg0\":10,\"arg1\":4}" | |
| } | |
| } | |
| ], | |
| "refusal": null, | |
| "annotations": [] | |
| }, | |
| "logprobs": null, | |
| "finish_reason": "tool_calls" | |
| } | |
| ], | |
| "usage": { | |
| "prompt_tokens": 91, | |
| "completion_tokens": 21, | |
| "total_tokens": 112, | |
| "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_560af6e559" | |
| } | |
| 2025-11-21 14:09:28 [main] dev.langchain4j.http.client.log.HttpRequestLogger.log() | |
| INFO: HTTP request: | |
| - method: POST | |
| - url: https://api.openai.com/v1/chat/completions | |
| - headers: [Authorization: Beare...EA], [User-Agent: langchain4j-openai], [Content-Type: application/json] | |
| - body: { | |
| "model" : "gpt-4o-mini", | |
| "messages" : [ { | |
| "role" : "user", | |
| "content" : "Count the number of eggs mentioned in this sentence:\n|||I have ten eggs in my basket and three in my pocket.|||\nYou must answer strictly in the following format: integer number" | |
| }, { | |
| "role" : "assistant", | |
| "tool_calls" : [ { | |
| "id" : "call_NVWNEcltaSaqv4SVymilPE5l", | |
| "type" : "function", | |
| "function" : { | |
| "name" : "sumEggs", | |
| "arguments" : "{\"arg0\":10,\"arg1\":4}" | |
| } | |
| } ] | |
| }, { | |
| "role" : "tool", | |
| "tool_call_id" : "call_NVWNEcltaSaqv4SVymilPE5l", | |
| "content" : "14" | |
| } ], | |
| "temperature" : 0.0, | |
| "stream" : false, | |
| "tools" : [ { | |
| "type" : "function", | |
| "function" : { | |
| "name" : "sumEggs", | |
| "description" : "calculates the sum of two integers representing egg counts", | |
| "parameters" : { | |
| "type" : "object", | |
| "properties" : { | |
| "arg0" : { | |
| "type" : "integer" | |
| }, | |
| "arg1" : { | |
| "type" : "integer" | |
| } | |
| }, | |
| "required" : [ "arg0", "arg1" ] | |
| } | |
| } | |
| } ], | |
| "parallel_tool_calls" : false | |
| } | |
| 2025-11-21 14:09:29 [main] dev.langchain4j.http.client.log.HttpResponseLogger.log() | |
| INFO: HTTP response: | |
| - status code: 200 | |
| - headers: [:status: 200], [access-control-expose-headers: X-Request-ID], [alt-svc: h3=":443"; ma=86400], [cf-cache-status: DYNAMIC], [cf-ray: 9a206bf498a8ed18-MXP], [content-type: application/json], [date: Fri, 21 Nov 2025 13:09:29 GMT], [openai-organization: mario-ongyc9], [openai-processing-ms: 200], [openai-project: proj_KZYq48CtyrKPUbWMmgU2ctvL], [openai-version: 2020-10-01], [server: cloudflare], [set-cookie: [__cf_bm=ucT4lNLxIJ2DyAriWmNTduYaVTmXneLGony6QDXkiJ8-1763730569-1.0.1.1-69Mwy8Ftpsa55o.LZMCNYRsW6nx01i8mnNH2xl1_g3y2OKeFaE.4E3RwLChOQiGHwVfcx0HigmCy2BPjaleG5jUd4.qm_e8xQ5anDlV3vBI; path=/; expires=Fri, 21-Nov-25 13:39:29 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=y8wlIStXFESEVdUmBO773mxiL_T0DX8EqdVRetzwBN4-1763730569388-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None]], [strict-transport-security: max-age=31536000; includeSubDomains; preload], [x-content-type-options: nosniff], [x-envoy-upstream-service-time: 342], [x-openai-proxy-wasm: v0.1], [x-ratelimit-limit-requests: 10000], [x-ratelimit-limit-tokens: 200000], [x-ratelimit-remaining-requests: 9998], [x-ratelimit-remaining-tokens: 199951], [x-ratelimit-reset-requests: 15.498s], [x-ratelimit-reset-tokens: 14ms], [x-request-id: req_08ecc5bdfc10411b874513ea50bf9643] | |
| - body: { | |
| "id": "chatcmpl-CeLBBL6HAbwiqElD0dVkIO4cbbZQv", | |
| "object": "chat.completion", | |
| "created": 1763730569, | |
| "model": "gpt-4o-mini-2024-07-18", | |
| "choices": [ | |
| { | |
| "index": 0, | |
| "message": { | |
| "role": "assistant", | |
| "content": "14", | |
| "refusal": null, | |
| "annotations": [] | |
| }, | |
| "logprobs": null, | |
| "finish_reason": "stop" | |
| } | |
| ], | |
| "usage": { | |
| "prompt_tokens": 122, | |
| "completion_tokens": 2, | |
| "total_tokens": 124, | |
| "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_51db84afab" | |
| } | |
| Process finished with exit code 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment