Files
crewAI/tests/cassettes/test_output_pydantic.yaml
Eduardo Chiarotti 5913803133 fix: update cassetes
2024-07-04 19:38:46 -03:00

258 lines
11 KiB
YAML

interactions:
- request:
body: '{"messages": [{"content": "You are Scorer. You''re an expert scorer, specialized
in scoring titles.\nYour personal goal is: Score the titleTo 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: my best complete final answer to the task.\nYour
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!\nCurrent
Task: Give me an integer score between 1-5 for the following title: ''The impact
of AI in the future of work''\n\nThis is the expect criteria for your final
answer: The score of the title. \n you 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:\n", "role": "user"}], "model": "gpt-4o", "n": 1, "stop": ["\nObservation"],
"stream": true, "temperature": 0.7}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '997'
content-type:
- application/json
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.35.10
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.35.10
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.9
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: 'data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"Thought"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
I"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
now"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
can"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
give"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
a"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
great"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"\n"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"Final"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
Answer"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":":"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"
"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{"content":"4"},"logprobs":null,"finish_reason":null}]}
data: {"id":"chatcmpl-9hPMkeY1E9Pqzoa3m6cQJP3C0yGOu","object":"chat.completion.chunk","created":1720132638,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_d576307f90","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
data: [DONE]
'
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 89e29959290282eb-GIG
Connection:
- keep-alive
Content-Type:
- text/event-stream; charset=utf-8
Date:
- Thu, 04 Jul 2024 22:37:18 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=A0BNojr3dkaVjo3hqVgnSu8ppp2cFB5ka1PjIbNlQWs-1720132638-1.0.1.1-H7tDFoxc58DZI.edm_Edqhe68hvB0c7Hf6GwHAWh6ViLEHiO.L4.LiKvEwSHVPwcFsAIB6iKgJMw4zXDRPOnkA;
path=/; expires=Thu, 04-Jul-24 23:07:18 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=Ug3UigRZzFoq7rzftVHsFLLj2bH0XVFV_BPYS8EjWHo-1720132638362-0.0.1.1-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
Transfer-Encoding:
- chunked
alt-svc:
- h3=":443"; ma=86400
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '69'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=31536000; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '16000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '15999772'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_aa1497208a2e8e65584820f8613dc958
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "user", "content": "4"}, {"role": "system", "content":
"I''m gonna convert this raw text into valid JSON."}], "model": "gpt-4o", "tool_choice":
{"type": "function", "function": {"name": "ScoreOutput"}}, "tools": [{"type":
"function", "function": {"name": "ScoreOutput", "description": "Correctly extracted
`ScoreOutput` with all the required parameters with correct types", "parameters":
{"properties": {"score": {"title": "Score", "type": "integer"}}, "required":
["score"], "type": "object"}}}]}'
headers:
accept:
- application/json
accept-encoding:
- gzip, deflate, br
connection:
- keep-alive
content-length:
- '519'
content-type:
- application/json
cookie:
- __cf_bm=A0BNojr3dkaVjo3hqVgnSu8ppp2cFB5ka1PjIbNlQWs-1720132638-1.0.1.1-H7tDFoxc58DZI.edm_Edqhe68hvB0c7Hf6GwHAWh6ViLEHiO.L4.LiKvEwSHVPwcFsAIB6iKgJMw4zXDRPOnkA;
_cfuvid=Ug3UigRZzFoq7rzftVHsFLLj2bH0XVFV_BPYS8EjWHo-1720132638362-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
- OpenAI/Python 1.35.10
x-stainless-arch:
- arm64
x-stainless-async:
- 'false'
x-stainless-lang:
- python
x-stainless-os:
- MacOS
x-stainless-package-version:
- 1.35.10
x-stainless-runtime:
- CPython
x-stainless-runtime-version:
- 3.11.9
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
A2kBAMTvs6u8k6jej1es8CCN1Bqtb+omuDRoj/MxtU1fugXDLg2zhYEmEFBZts7FwuTQJ1fWhHv3
gghZCCYEqdcEysruMn24LeK6ON2Yy+fi4U5P4vn76H2Wqaf4DR1BBOPnUdBw4j0XAzUzGoKcXL4W
hWAazkeD4Xg0Gy+IF5QJIwkmJLbpTkx3NBhNuoNpdzhmXk1NFkQ1mL4FEdG+NSDC8/cdMA06o4gz
hgAGvkSEysgITPDqOqsbTzfoADLR60aZdCslcaoxRjqBJ6VwqAL3/YyufvWkdB7Ck7eLI32/ru9e
dJqMTm/vn/Lo6lEmND2ztYtCHTEKMSitigWGiKA9xf/Uc2Cq6L5tbNtkgwiW/hBM2P+gDkwV/YAn
/5iz9l/0sV8N4f+qmgdpElsZv044otYBzg1hI2BC3RgrxvwXRL8mLLdWOQFbGWUbpzFFpGswLQqA
PZMBYNOU+eGBDElbTMUSCUQRWHDiTCdRZavMnBsQWyeIBvPleDwexBD/wgAD
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 89e2995ef92a82eb-GIG
Connection:
- keep-alive
Content-Encoding:
- br
Content-Type:
- application/json
Date:
- Thu, 04 Jul 2024 22:37:18 GMT
Server:
- cloudflare
Transfer-Encoding:
- chunked
alt-svc:
- h3=":443"; ma=86400
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '158'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=31536000; includeSubDomains
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
- '16000000'
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '15999969'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_35b6857bafd6ee421c638ce3d2756a09
status:
code: 200
message: OK
version: 1