mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-03 16:22:49 +00:00
fix(tests): convert VCR cassettes to correct format and fix file tests
- Convert 78 cassettes from old VCR format (content/status_code/http_version) to new format (body.string/status.code/status.message) - Replace MagicMock with real File objects in file-related agent tests
This commit is contained in:
@@ -48,14 +48,17 @@ interactions:
|
||||
method: POST
|
||||
uri: https://api.openai.com/v1/chat/completions
|
||||
response:
|
||||
content: "{\n \"id\": \"chatcmpl-AB7dP8gaUOwAsiDwbaAAJzoi112KV\",\n \"object\":
|
||||
\"chat.completion\",\n \"created\": 1727214319,\n \"model\": \"gpt-4o-2024-05-13\",\n
|
||||
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
|
||||
\"assistant\",\n \"content\": \"Thought: I now can give a great answer\\nFinal
|
||||
Answer: Hi John\",\n \"refusal\": null\n },\n \"logprobs\":
|
||||
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
|
||||
166,\n \"completion_tokens\": 15,\n \"total_tokens\": 181,\n \"completion_tokens_details\":
|
||||
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_52a7f40b0b\"\n}\n"
|
||||
body:
|
||||
string: "{\n \"id\": \"chatcmpl-AB7dP8gaUOwAsiDwbaAAJzoi112KV\",\n \"object\"\
|
||||
: \"chat.completion\",\n \"created\": 1727214319,\n \"model\": \"gpt-4o-2024-05-13\"\
|
||||
,\n \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \
|
||||
\ \"role\": \"assistant\",\n \"content\": \"Thought: I now can\
|
||||
\ give a great answer\\nFinal Answer: Hi John\",\n \"refusal\": null\n\
|
||||
\ },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n\
|
||||
\ }\n ],\n \"usage\": {\n \"prompt_tokens\": 166,\n \"completion_tokens\"\
|
||||
: 15,\n \"total_tokens\": 181,\n \"completion_tokens_details\": {\n\
|
||||
\ \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"\
|
||||
fp_52a7f40b0b\"\n}\n"
|
||||
headers:
|
||||
CF-Cache-Status:
|
||||
- DYNAMIC
|
||||
@@ -97,6 +100,7 @@ interactions:
|
||||
- 0s
|
||||
x-request-id:
|
||||
- req_499bab243aec2f1118c44688fabe5903
|
||||
http_version: HTTP/1.1
|
||||
status_code: 200
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
version: 1
|
||||
|
||||
Reference in New Issue
Block a user