fixing parser, tools and executor

This commit is contained in:
João Moura
2024-09-15 18:41:59 -03:00
parent c2795307f6
commit f216b0a78c
98 changed files with 21270 additions and 26437 deletions

View File

@@ -11,7 +11,7 @@ interactions:
for your final answer: The score of the title.\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"]}'
on it!\n\nThought:"}], "model": "gpt-4o", "stop": ["\nObservation:"]}'
headers:
accept:
- application/json
@@ -20,12 +20,9 @@ interactions:
connection:
- keep-alive
content-length:
- '942'
- '943'
content-type:
- application/json
cookie:
- __cf_bm=pgsskMPipgeSB6HhnkjwcOEfengIvt0p9whKNmTJVLs-1726215280-1.0.1.1-Gtqb.nO1U.cHTnd9mR9sEA5tpVo1.pexRrxqXOkn.6Mzja8mLG1URJsOLTfjMAAYpWaUQe4Rjmnr6lqQk5hAxQ;
_cfuvid=dp2yoCmGHVlURh_U78_UoIfnhcO5UhufnL5whkUSMTQ-1726214380689-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -49,19 +46,19 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6voFmmV3j0rP7NPa5dbhi5cSlKT9\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215551,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7r11JKVRDysjZz7Tcxxb4yUOAJg3\",\n \"object\":
\"chat.completion\",\n \"created\": 1726435451,\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
\"assistant\",\n \"content\": \"I now can give a great answer\\nFinal
Answer: 4\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
186,\n \"completion_tokens\": 15,\n \"total_tokens\": 201,\n \"completion_tokens_details\":
186,\n \"completion_tokens\": 13,\n \"total_tokens\": 199,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_25624ae3a5\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26b5fdbf762ab9-LAX
- 8c3baea4bbe9228a-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -69,21 +66,25 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:19:12 GMT
- Sun, 15 Sep 2024 21:24:12 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=cPwr8PW8P1OiWltPoggvNjzXgqYtioRariCQFeRuR.8-1726435452-1.0.1.1-u7SStDwCJtY.RWN7B2ZpLxw0Lp1zunbps9Uo7vO2jCnjBb.XjYeli35i2FCQGlPUnoxY_tgpis.osH_DE4DKqA;
path=/; expires=Sun, 15-Sep-24 21:54:12 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=tLU7_VrmVvYcE8S08CyO.3tjJIK4SyW_93jOIQASb2A-1726435452050-0.0.1.1-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
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:
- '472'
- '269'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -101,7 +102,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_7acd6307b9b8842dee32247f11e9f2bf
- req_ce9369d89bad6a2a55d5075a92d12a46
http_version: HTTP/1.1
status_code: 200
- request:
@@ -123,9 +124,6 @@ interactions:
- '519'
content-type:
- application/json
cookie:
- __cf_bm=n_BvuurPQNYmr4Xe9Yg_foBSFxwgwMpaTEdPHdqVgGQ-1726214721-1.0.1.1-WYudPPoSnx6FZSF9AMgWsJ8MlooxW8CnQiO2OS.lbnFdxsvYvd08ZsU2GLr1qne3Wxw6ebt_7iRVpoFdpAvarA;
_cfuvid=rXgn0vlVZcDxXcw1CtGMaLx8.GKpg0HOhhM.Ai36L2I-1726214721376-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -149,11 +147,11 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-A6voHuhFpsZCzoyuh4RDBkJMDUyPf\",\n \"object\":
\"chat.completion\",\n \"created\": 1726215553,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-A7r12YUtbajlP4ISUfHDJaRZIGNRr\",\n \"object\":
\"chat.completion\",\n \"created\": 1726435452,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": null,\n \"tool_calls\": [\n {\n
\ \"id\": \"call_hrizz1SAF9jYh1M6wluuYEMu\",\n \"type\":
\ \"id\": \"call_wuBHSqSWq9J9QOIdlETyX6f6\",\n \"type\":
\"function\",\n \"function\": {\n \"name\": \"ScoreOutput\",\n
\ \"arguments\": \"{\\\"score\\\":4}\"\n }\n }\n
\ ],\n \"refusal\": null\n },\n \"logprobs\": null,\n
@@ -164,7 +162,7 @@ interactions:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c26b6074e7f7e8f-LAX
- 8c3baeab0b05da2b-MIA
Connection:
- keep-alive
Content-Encoding:
@@ -172,9 +170,15 @@ interactions:
Content-Type:
- application/json
Date:
- Fri, 13 Sep 2024 08:19:13 GMT
- Sun, 15 Sep 2024 21:24:13 GMT
Server:
- cloudflare
Set-Cookie:
- __cf_bm=hjATve7QK5KqYq1NHMhhK9BXkMTEA9MsRE0aY33aqM0-1726435453-1.0.1.1-YDHY.n46FBDOURAALcS96QhqqRUKn7b0RtYllKXiJDuyy5jy8YtKKkzjXA9VPp9.LIw4XAphQfrlymUxCiC8Cg;
path=/; expires=Sun, 15-Sep-24 21:54:13 GMT; domain=.api.openai.com; HttpOnly;
Secure; SameSite=None
- _cfuvid=KZdiOHc2TjOc9NWEtuYWU3kYmH7r1nkuD46HtfK7UII-1726435453042-0.0.1.1-604800000;
path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None
Transfer-Encoding:
- chunked
X-Content-Type-Options:
@@ -186,7 +190,7 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '175'
- '138'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -204,7 +208,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_b326cd1f7a12eaf2b3dd7a60c5683aab
- req_9d2ccf546446e816d92cc49f7e4e9496
http_version: HTTP/1.1
status_code: 200
version: 1