From aa350ae530a919d4d0e3bc11bb94e40e4cd367b8 Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Wed, 19 Feb 2025 13:22:50 -0500 Subject: [PATCH] fix failing test --- tests/agent_test.py | 4 +- tests/cassettes/test_agent_human_input.yaml | 461 ++++---------------- 2 files changed, 86 insertions(+), 379 deletions(-) diff --git a/tests/agent_test.py b/tests/agent_test.py index d429a3c60..52ebad6d1 100644 --- a/tests/agent_test.py +++ b/tests/agent_test.py @@ -992,8 +992,8 @@ def test_agent_human_input(): # Side effect function for _ask_human_input to simulate multiple feedback iterations feedback_responses = iter( [ - "Don't say hi, say Hello instead!", # First feedback - "looks good", # Second feedback to exit loop + "Don't say hi, say Hello instead!", # First feedback: instruct change from "Hi" to "Hello" + "", # Second feedback: empty string to signal acceptance and exit loop ] ) diff --git a/tests/cassettes/test_agent_human_input.yaml b/tests/cassettes/test_agent_human_input.yaml index 8c5fd3a80..152353da4 100644 --- a/tests/cassettes/test_agent_human_input.yaml +++ b/tests/cassettes/test_agent_human_input.yaml @@ -1,98 +1,15 @@ interactions: -- request: - body: !!binary | - CqcXCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkS/hYKEgoQY3Jld2FpLnRl - bGVtZXRyeRJ5ChBuJJtOdNaB05mOW/p3915eEgj2tkAd3rZcASoQVG9vbCBVc2FnZSBFcnJvcjAB - OYa7/URvKBUYQUpcFEVvKBUYShoKDmNyZXdhaV92ZXJzaW9uEggKBjAuODYuMEoPCgNsbG0SCAoG - Z3B0LTRvegIYAYUBAAEAABLJBwoQifhX01E5i+5laGdALAlZBBIIBuGM1aN+OPgqDENyZXcgQ3Jl - YXRlZDABORVGruBvKBUYQaipwOBvKBUYShoKDmNyZXdhaV92ZXJzaW9uEggKBjAuODYuMEoaCg5w - eXRob25fdmVyc2lvbhIICgYzLjEyLjdKLgoIY3Jld19rZXkSIgogN2U2NjA4OTg5ODU5YTY3ZWVj - ODhlZWY3ZmNlODUyMj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OS00NzA4LTg1MzAtNDQ4YWZhM2JmOGIwSi4KCHRhc2tf - a2V5EiIKIDgwZDdiY2Q0OTA5OTI5MDA4MzgzMmYwZTk4MzM4MGRmSjEKB3Rhc2tfaWQSJgokMmZm - NjE5N2UtYmEyNy00YjczLWI0YTctNGZhMDQ4ZTYyYjQ3egIYAYUBAAEAABKTAQoQ26H9pLUgswDN - p9XhJwwL6BIIx3bw7mAvPYwqClRvb2wgVXNhZ2UwATmy7NPlbygVGEEvb+HlbygVGEoaCg5jcmV3 - YWlfdmVyc2lvbhIICgYwLjg2LjBKHwoJdG9vbF9uYW1lEhIKEERlY2lkZSBHcmVldGluZ3NKDgoI - YXR0ZW1wdHMSAhgBegIYAYUBAAEAAA== - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2986' - Content-Type: - - application/x-protobuf - User-Agent: - - OTel-OTLP-Exporter-Python/1.27.0 - method: POST - uri: https://telemetry.crewai.com:4319/v1/traces - response: - body: - string: "\n\0" - headers: - Content-Length: - - '2' - Content-Type: - - application/x-protobuf - Date: - - Fri, 27 Dec 2024 22:14:53 GMT - status: - code: 200 - message: OK - request: body: '{"messages": [{"role": "system", "content": "You are test role. test backstory\nYour personal goal is: test goal\nTo give my best complete final answer to the task - use the exact following format:\n\nThought: I now can give a great answer\nFinal - Answer: Your final answer must be the great and the most complete as possible, - it must be outcome described.\n\nI MUST use these formats, my job depends on - it!"}, {"role": "user", "content": "\nCurrent Task: Say the word: Hi\n\nThis - is the expect criteria for your final answer: The word: Hi\nyou MUST return - the actual complete content as the final answer, not a summary.\n\nBegin! This - is VERY important to you, use the tools available and give your best Final Answer, - your job depends on it!\n\nThought:"}], "model": "gpt-4o-mini", "stop": ["\nObservation:"], + respond using the exact following format:\n\nThought: I now can give a great + answer\nFinal Answer: Your final answer must be the great and the most complete + as possible, it must be outcome described.\n\nI MUST use these formats, my job + depends on it!"}, {"role": "user", "content": "\nCurrent Task: Say the word: + Hi\n\nThis is the expected criteria for your final answer: The word: Hi\nyou + MUST return the actual complete content as the final answer, not a summary.\n\nBegin! + This is VERY important to you, use the tools available and give your best Final + Answer, your job depends on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nObservation:"], "stream": false}' headers: accept: @@ -102,25 +19,23 @@ interactions: connection: - keep-alive content-length: - - '824' + - '831' content-type: - application/json - cookie: - - _cfuvid=ePJSDFdHag2D8lj21_ijAMWjoA6xfnPNxN4uekvC728-1727226247743-0.0.1.1-604800000 host: - api.openai.com user-agent: - - OpenAI/Python 1.52.1 + - OpenAI/Python 1.52.0 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.52.1 + - 1.52.0 x-stainless-raw-response: - 'true' x-stainless-retry-count: @@ -128,26 +43,25 @@ interactions: x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.12.7 + - 3.12.8 method: POST uri: https://api.openai.com/v1/chat/completions response: - content: "{\n \"id\": \"chatcmpl-AjCtZLLrWi8ZASpP9bz6HaCV7xBIn\",\n \"object\": - \"chat.completion\",\n \"created\": 1735337693,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"I now can give a great answer \\nFinal - Answer: Hi\",\n \"refusal\": null\n },\n \"logprobs\": null,\n - \ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": - 158,\n \"completion_tokens\": 12,\n \"total_tokens\": 170,\n \"prompt_tokens_details\": - {\n \"cached_tokens\": 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": - {\n \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": - 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\": - \"fp_0aa8d3e20b\"\n}\n" + body: + string: !!binary | + H4sIAAAAAAAAAwAAAP//jFLLbtswELzrKxY8W4Us242lWwO0SIAELdDHpS0EmlxJ21AkQ1Kx28D/ + HlByLAVNgV4EaGdnMDPcxwSAkWQlMNHyIDqr0suc/nyjw2d1Yw6f7i/z5nqz2ty/v/2KW/2RLSLD + 7H6hCM+sN8J0VmEgo0dYOOQBo+ryYlUU22KVLQegMxJVpDU2pGuT5lm+TrNtmr09EVtDAj0r4XsC + APA4fKNFLfHASsgWz5MOvecNsvK8BMCcUXHCuPfkA9eBLSZQGB1QD66vQZs9CK6hoQcEDk10DFz7 + PTqAH/oDaa7g3fBfwpcWYW+cLOGK5ooO697zGEj3Sp3mx7NFZRrrzM6f8PO8Jk2+rRxyb3S044Ox + bECPCcDPoYr+RTpmnelsqIK5Qx0Fl5ti1GNT+XP0BAYTuJrNL9aLV/QqiYGT8rMymeCiRTlRp+Z5 + L8nMgGSW+m83r2mPyUk3/yM/AUKgDSgr61CSeJl4WnMYb/Nfa+eWB8PMo3sggVUgdPElJNa8V+PZ + MP/bB+yqmnSDzjoab6e2VV1nRc53+QZZckyeAAAA//8DAOXp461EAwAA headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8f8caa83deca756b-SEA + - 9148472d9b477b92-ATL Connection: - keep-alive Content-Encoding: @@ -155,14 +69,14 @@ interactions: Content-Type: - application/json Date: - - Fri, 27 Dec 2024 22:14:53 GMT + - Wed, 19 Feb 2025 18:21:42 GMT Server: - cloudflare Set-Cookie: - - __cf_bm=wJkq_yLkzE3OdxE0aMJz.G0kce969.9JxRmZ0ratl4c-1735337693-1.0.1.1-OKpUoRrSPFGvWv5Hp5ET1PNZ7iZNHPKEAuakpcQUxxPSeisUIIR3qIOZ31MGmYugqB5.wkvidgbxOAagqJvmnw; - path=/; expires=Fri, 27-Dec-24 22:44:53 GMT; domain=.api.openai.com; HttpOnly; + - __cf_bm=NIhHIu27ZBweAaRX_q.6yK142M1_cTMHlWYs9yIG7.Y-1739989302-1.0.1.1-tgMzFJgwrT.KOUFe9pKV.DmD613IVop4X_UmUfMJc05qX4sjUigv_KSocb.tMwtbeR1hyOIvYZ6on9JINZorcQ; + path=/; expires=Wed, 19-Feb-25 18:51:42 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None - - _cfuvid=A_ASCLNAVfQoyucWOAIhecWtEpNotYoZr0bAFihgNxs-1735337693273-0.0.1.1-604800000; + - _cfuvid=BUnj.Vz6HXz.JiSGHco4gBWWb8yGSnKfcKyuhTeRS8Q-1739989302027-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None Transfer-Encoding: - chunked @@ -175,34 +89,43 @@ interactions: openai-organization: - crewai-iuxna1 openai-processing-ms: - - '404' + - '500' openai-version: - '2020-10-01' strict-transport-security: - max-age=31536000; includeSubDomains; preload x-ratelimit-limit-requests: - - '30000' + - '10000' x-ratelimit-limit-tokens: - - '150000000' + - '30000000' x-ratelimit-remaining-requests: - - '29999' + - '9999' x-ratelimit-remaining-tokens: - - '149999816' + - '29999813' x-ratelimit-reset-requests: - - 2ms + - 6ms x-ratelimit-reset-tokens: - 0s x-request-id: - - req_6ac84634bff9193743c4b0911c09b4a6 - http_version: HTTP/1.1 - status_code: 200 + - req_0fc0c7478f661f7ce355160fc78afcef + status: + code: 200 + message: OK - request: - body: '{"messages": [{"role": "system", "content": "Determine if the following - feedback indicates that the user is satisfied or if further changes are needed. - Respond with ''True'' if further changes are needed, or ''False'' if the user - is satisfied. **Important** Do not include any additional commentary outside - of your ''True'' or ''False'' response.\n\nFeedback: \"Don''t say hi, say Hello - instead!\""}], "model": "gpt-4o-mini", "stop": ["\nObservation:"], "stream": + body: '{"messages": [{"role": "system", "content": "You are test role. test backstory\nYour + personal goal is: test goal\nTo give my best complete final answer to the task + respond using the exact following format:\n\nThought: I now can give a great + answer\nFinal Answer: Your final answer must be the great and the most complete + as possible, it must be outcome described.\n\nI MUST use these formats, my job + depends on it!"}, {"role": "user", "content": "\nCurrent Task: Say the word: + Hi\n\nThis is the expected criteria for your final answer: The word: Hi\nyou + MUST return the actual complete content as the final answer, not a summary.\n\nBegin! + This is VERY important to you, use the tools available and give your best Final + Answer, your job depends on it!\n\nThought:"}, {"role": "assistant", "content": + "I now can give a great answer \nFinal Answer: The word: Hi"}, {"role": "user", + "content": "User feedback: Don''t say hi, say Hello instead!\nInstructions: + Use this feedback to enhance the next output iteration.\nNote: Do not respond + or add commentary."}], "model": "gpt-4o", "stop": ["\nObservation:"], "stream": false}' headers: accept: @@ -212,26 +135,26 @@ interactions: connection: - keep-alive content-length: - - '461' + - '1120' content-type: - application/json cookie: - - _cfuvid=A_ASCLNAVfQoyucWOAIhecWtEpNotYoZr0bAFihgNxs-1735337693273-0.0.1.1-604800000; - __cf_bm=wJkq_yLkzE3OdxE0aMJz.G0kce969.9JxRmZ0ratl4c-1735337693-1.0.1.1-OKpUoRrSPFGvWv5Hp5ET1PNZ7iZNHPKEAuakpcQUxxPSeisUIIR3qIOZ31MGmYugqB5.wkvidgbxOAagqJvmnw + - __cf_bm=NIhHIu27ZBweAaRX_q.6yK142M1_cTMHlWYs9yIG7.Y-1739989302-1.0.1.1-tgMzFJgwrT.KOUFe9pKV.DmD613IVop4X_UmUfMJc05qX4sjUigv_KSocb.tMwtbeR1hyOIvYZ6on9JINZorcQ; + _cfuvid=BUnj.Vz6HXz.JiSGHco4gBWWb8yGSnKfcKyuhTeRS8Q-1739989302027-0.0.1.1-604800000 host: - api.openai.com user-agent: - - OpenAI/Python 1.52.1 + - OpenAI/Python 1.52.0 x-stainless-arch: - - x64 + - arm64 x-stainless-async: - 'false' x-stainless-lang: - python x-stainless-os: - - Linux + - MacOS x-stainless-package-version: - - 1.52.1 + - 1.52.0 x-stainless-raw-response: - 'true' x-stainless-retry-count: @@ -239,26 +162,23 @@ interactions: x-stainless-runtime: - CPython x-stainless-runtime-version: - - 3.12.7 + - 3.12.8 method: POST uri: https://api.openai.com/v1/chat/completions response: - content: "{\n \"id\": \"chatcmpl-AjCtZNlWdrrPZhq0MJDqd16sMuQEJ\",\n \"object\": - \"chat.completion\",\n \"created\": 1735337693,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"True\",\n \"refusal\": null\n - \ },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 78,\n \"completion_tokens\": - 1,\n \"total_tokens\": 79,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n - \ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": - 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\": - \"fp_0aa8d3e20b\"\n}\n" + body: + string: !!binary | + H4sIAAAAAAAAA4xSwW7bMAy9+ysInePBcdI18W09FFvPwYJhGwxFom21kihIcrKtyL8PstPYRTtg + FwHi43t4j+RzBsCUZBUw0fEojNP5Xan+7G+U2xz3D1befdvdG2W+Nnvz9Cge2CIx6PCIIr6wPggy + TmNUZEdYeOQRk+rydrXdbrarohwAQxJ1orUu5mvKy6Jc58UmLz5eiB0pgYFV8D0DAHge3mTRSvzF + KigWLxWDIfAWWXVtAmCedKowHoIKkdvIFhMoyEa0g+tdR33bxQq+gKUTCG6hVUcEDm2yDtyGE3qA + H/ZeWa7h0/CvYNchnMjLCj6j1jRX99j0gadwttf6Uj9f7WpqnadDuODXeqOsCl3tkQeyyVqI5NiA + njOAn8NY+ldJmfNkXKwjPaFNguVyPeqxaRETury9gJEi1zPWarl4R6+WGLnSYTZYJrjoUE7UaQu8 + l4pmQDZL/dbNe9pjcmXb/5GfACHQRZS18yiVeJ14avOY7vRfbdcpD4ZZQH9UAuuo0KdNSGx4r8cT + YuF3iGjqRtkWvfNqvKPG1U1TbEt+KG+QZefsLwAAAP//AwDlwi+FUAMAAA== headers: - CF-Cache-Status: - - DYNAMIC CF-RAY: - - 8f8caa87094f756b-SEA + - 91484731db2d7b92-ATL Connection: - keep-alive Content-Encoding: @@ -266,7 +186,7 @@ interactions: Content-Type: - application/json Date: - - Fri, 27 Dec 2024 22:14:53 GMT + - Wed, 19 Feb 2025 18:21:42 GMT Server: - cloudflare Transfer-Encoding: @@ -277,244 +197,31 @@ interactions: - X-Request-ID alt-svc: - h3=":443"; ma=86400 - openai-organization: - - crewai-iuxna1 - openai-processing-ms: - - '156' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-ratelimit-limit-requests: - - '30000' - x-ratelimit-limit-tokens: - - '150000000' - x-ratelimit-remaining-requests: - - '29999' - x-ratelimit-remaining-tokens: - - '149999898' - x-ratelimit-reset-requests: - - 2ms - x-ratelimit-reset-tokens: - - 0s - x-request-id: - - req_ec74bef2a9ef7b2144c03fd7f7bbeab0 - http_version: HTTP/1.1 - status_code: 200 -- request: - body: '{"messages": [{"role": "system", "content": "You are test role. test backstory\nYour - personal goal is: test goal\nTo give my best complete final answer to the task - use the exact following format:\n\nThought: I now can give a great answer\nFinal - Answer: Your final answer must be the great and the most complete as possible, - it must be outcome described.\n\nI MUST use these formats, my job depends on - it!"}, {"role": "user", "content": "\nCurrent Task: Say the word: Hi\n\nThis - is the expect criteria for your final answer: The word: Hi\nyou MUST return - the actual complete content as the final answer, not a summary.\n\nBegin! This - is VERY important to you, use the tools available and give your best Final Answer, - your job depends on it!\n\nThought:"}, {"role": "assistant", "content": "I now - can give a great answer \nFinal Answer: Hi"}, {"role": "user", "content": "Feedback: - Don''t say hi, say Hello instead!"}], "model": "gpt-4o-mini", "stop": ["\nObservation:"], - "stream": false}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - connection: - - keep-alive - content-length: - - '986' - content-type: - - application/json - cookie: - - _cfuvid=A_ASCLNAVfQoyucWOAIhecWtEpNotYoZr0bAFihgNxs-1735337693273-0.0.1.1-604800000; - __cf_bm=wJkq_yLkzE3OdxE0aMJz.G0kce969.9JxRmZ0ratl4c-1735337693-1.0.1.1-OKpUoRrSPFGvWv5Hp5ET1PNZ7iZNHPKEAuakpcQUxxPSeisUIIR3qIOZ31MGmYugqB5.wkvidgbxOAagqJvmnw - host: - - api.openai.com - user-agent: - - OpenAI/Python 1.52.1 - x-stainless-arch: - - x64 - x-stainless-async: - - 'false' - x-stainless-lang: - - python - x-stainless-os: - - Linux - x-stainless-package-version: - - 1.52.1 - x-stainless-raw-response: - - 'true' - x-stainless-retry-count: - - '0' - x-stainless-runtime: - - CPython - x-stainless-runtime-version: - - 3.12.7 - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - content: "{\n \"id\": \"chatcmpl-AjCtZGv4f3h7GDdhyOy9G0sB1lRgC\",\n \"object\": - \"chat.completion\",\n \"created\": 1735337693,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"Thought: I understand the feedback and - will adjust my response accordingly. \\nFinal Answer: Hello\",\n \"refusal\": - null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n - \ }\n ],\n \"usage\": {\n \"prompt_tokens\": 188,\n \"completion_tokens\": - 18,\n \"total_tokens\": 206,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n - \ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": - 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\": - \"fp_0aa8d3e20b\"\n}\n" - headers: - CF-Cache-Status: + cf-cache-status: - DYNAMIC - CF-RAY: - - 8f8caa88cac4756b-SEA - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Fri, 27 Dec 2024 22:14:54 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - alt-svc: - - h3=":443"; ma=86400 openai-organization: - crewai-iuxna1 openai-processing-ms: - - '358' + - '724' openai-version: - '2020-10-01' strict-transport-security: - max-age=31536000; includeSubDomains; preload x-ratelimit-limit-requests: - - '30000' + - '10000' x-ratelimit-limit-tokens: - - '150000000' + - '30000000' x-ratelimit-remaining-requests: - - '29999' + - '9999' x-ratelimit-remaining-tokens: - - '149999793' + - '29999757' x-ratelimit-reset-requests: - - 2ms + - 6ms x-ratelimit-reset-tokens: - 0s x-request-id: - - req_ae1ab6b206d28ded6fee3c83ed0c2ab7 - http_version: HTTP/1.1 - status_code: 200 -- request: - body: '{"messages": [{"role": "system", "content": "Determine if the following - feedback indicates that the user is satisfied or if further changes are needed. - Respond with ''True'' if further changes are needed, or ''False'' if the user - is satisfied. **Important** Do not include any additional commentary outside - of your ''True'' or ''False'' response.\n\nFeedback: \"looks good\""}], "model": - "gpt-4o-mini", "stop": ["\nObservation:"], "stream": false}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - connection: - - keep-alive - content-length: - - '439' - content-type: - - application/json - cookie: - - _cfuvid=A_ASCLNAVfQoyucWOAIhecWtEpNotYoZr0bAFihgNxs-1735337693273-0.0.1.1-604800000; - __cf_bm=wJkq_yLkzE3OdxE0aMJz.G0kce969.9JxRmZ0ratl4c-1735337693-1.0.1.1-OKpUoRrSPFGvWv5Hp5ET1PNZ7iZNHPKEAuakpcQUxxPSeisUIIR3qIOZ31MGmYugqB5.wkvidgbxOAagqJvmnw - host: - - api.openai.com - user-agent: - - OpenAI/Python 1.52.1 - x-stainless-arch: - - x64 - x-stainless-async: - - 'false' - x-stainless-lang: - - python - x-stainless-os: - - Linux - x-stainless-package-version: - - 1.52.1 - x-stainless-raw-response: - - 'true' - x-stainless-retry-count: - - '0' - x-stainless-runtime: - - CPython - x-stainless-runtime-version: - - 3.12.7 - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - content: "{\n \"id\": \"chatcmpl-AjCtaiHL4TY8Dssk0j2miqmjrzquy\",\n \"object\": - \"chat.completion\",\n \"created\": 1735337694,\n \"model\": \"gpt-4o-mini-2024-07-18\",\n - \ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\": - \"assistant\",\n \"content\": \"False\",\n \"refusal\": null\n - \ },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n - \ ],\n \"usage\": {\n \"prompt_tokens\": 73,\n \"completion_tokens\": - 1,\n \"total_tokens\": 74,\n \"prompt_tokens_details\": {\n \"cached_tokens\": - 0,\n \"audio_tokens\": 0\n },\n \"completion_tokens_details\": {\n - \ \"reasoning_tokens\": 0,\n \"audio_tokens\": 0,\n \"accepted_prediction_tokens\": - 0,\n \"rejected_prediction_tokens\": 0\n }\n },\n \"system_fingerprint\": - \"fp_0aa8d3e20b\"\n}\n" - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8f8caa8bdd26756b-SEA - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Fri, 27 Dec 2024 22:14:54 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - alt-svc: - - h3=":443"; ma=86400 - openai-organization: - - crewai-iuxna1 - openai-processing-ms: - - '184' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-ratelimit-limit-requests: - - '30000' - x-ratelimit-limit-tokens: - - '150000000' - x-ratelimit-remaining-requests: - - '29999' - x-ratelimit-remaining-tokens: - - '149999902' - x-ratelimit-reset-requests: - - 2ms - x-ratelimit-reset-tokens: - - 0s - x-request-id: - - req_652891f79c1104a7a8436275d78a69f1 - http_version: HTTP/1.1 - status_code: 200 + - req_8054bff8424aa4e183762945abfd86e6 + status: + code: 200 + message: OK version: 1