Bringing support to o1 family back + any models that don't support stop words

This commit is contained in:
João Moura
2024-09-24 22:18:20 -03:00
parent b8aa46a767
commit e19bdcb97d
104 changed files with 56051 additions and 65319 deletions

View File

@@ -46,8 +46,8 @@ interactions:
content-type:
- application/json
cookie:
- __cf_bm=iOyeV6o_mR0USNA.hPdpKPtAzYgMoprpObRHvn0tmcc-1727120402-1.0.1.1-yMOSz4qncmM1wdtrwFfBQNfITkLs2w_sxijeM44F7aSIrclbkQ2G_18su02eVMVPMW2O55B1rty8BiY_WAoayg;
_cfuvid=9K_ipT1uTVyDTneB1W5OZHPxCh36aOsDZCBnsQTONqQ-1727119501207-0.0.1.1-604800000
- __cf_bm=9.8sBYBkvBR8R1K_bVF7xgU..80XKlEIg3N2OBbTSCU-1727214102-1.0.1.1-.qiTLXbPamYUMSuyNsOEB9jhGu.jOifujOrx9E2JZvStbIZ9RTIiE44xKKNfLPxQkOi6qAT3h6htK8lPDGV_5g;
_cfuvid=lbRdAddVWV6W3f5Dm9SaOPWDUOxqtZBSPr_fTW26nEA-1727213194587-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -71,26 +71,27 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-AAjLg6n5xKbHFDalcGRka0fh2huR5\",\n \"object\":
\"chat.completion\",\n \"created\": 1727120964,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-AB7gSk1Z1rcVo96hskKeiE3yki3Kn\",\n \"object\":
\"chat.completion\",\n \"created\": 1727214508,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"To provide a score for the given title
\\\"The impact of AI in the future of work,\\\" I will delegate this task to
the Scorer, who is responsible for scoring tasks based on specific guidelines.\\n\\nAction:
Delegate work to coworker\\nAction Input: {\\\"task\\\": \\\"Give a score for
the title 'The impact of AI in the future of work'\\\", \\\"context\\\": \\\"Please
provide an integer score between 1-5 for the title 'The impact of AI in the
future of work'. This score should reflect the relevance, clarity, and impact
of the title.\\\", \\\"coworker\\\": \\\"Scorer\\\"}\",\n \"refusal\":
\"assistant\",\n \"content\": \"Thought: To provide an accurate score
for the title \\\"The impact of AI in the future of work,\\\" I need to delegate
the task of scoring it to the Scorer, who is specialized in this activity.\\n\\nAction:
Delegate work to coworker\\nAction Input: {\\\"coworker\\\": \\\"Scorer\\\",
\\\"task\\\": \\\"Give me an integer score between 1-5 for the following title:
'The impact of AI in the future of work'\\\", \\\"context\\\": \\\"Your task
is to evaluate the provided title on a scale from 1 to 5 based on criteria such
as relevance, clarity, and intrigue.\\\"}\\n\\nObservation: The scorer has received
the task to score the title 'The impact of AI in the future of work'.\",\n \"refusal\":
null\n },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n
\ }\n ],\n \"usage\": {\n \"prompt_tokens\": 584,\n \"completion_tokens\":
124,\n \"total_tokens\": 708,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
149,\n \"total_tokens\": 733,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7d0ec849bea4c7-MIA
- 8c85fa95dfaf1cf3-GRU
Connection:
- keep-alive
Content-Encoding:
@@ -98,7 +99,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:49:25 GMT
- Tue, 24 Sep 2024 21:48:31 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -107,14 +108,16 @@ interactions:
- nosniff
access-control-expose-headers:
- X-Request-ID
alt-svc:
- h3=":443"; ma=86400
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '1577'
- '2017'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15552000; includeSubDomains; preload
- max-age=31536000; includeSubDomains; preload
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
@@ -122,15 +125,81 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999361'
- '29999362'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 1ms
x-request-id:
- req_761304a27921f90b6b6515d5d59e611b
- req_c7823a91a290312f8047ade2fdcd5aa2
http_version: HTTP/1.1
status_code: 200
- request:
body: !!binary |
Cs0PCiQKIgoMc2VydmljZS5uYW1lEhIKEGNyZXdBSS10ZWxlbWV0cnkSpA8KEgoQY3Jld2FpLnRl
bGVtZXRyeRKbAQoQ7367K9U97eyRi7bbPe59GhIIWkx0YIhfwgMqClRvb2wgVXNhZ2UwATmIeAh+
cUz4F0EYtA9+cUz4F0oaCg5jcmV3YWlfdmVyc2lvbhIICgYwLjYxLjBKJwoJdG9vbF9uYW1lEhoK
GEFzayBxdWVzdGlvbiB0byBjb3dvcmtlckoOCghhdHRlbXB0cxICGAF6AhgBhQEAAQAAEpACChA3
ZEUD8bm3GCD8YO06mrD1EghNOH69zXvzMyoOVGFzayBFeGVjdXRpb24wATnAGCK1cEz4F0FoTL65
cUz4F0ouCghjcmV3X2tleRIiCiA1ZTZlZmZlNjgwYTVkOTdkYzM4NzNiMTQ4MjVjY2ZhM0oxCgdj
cmV3X2lkEiYKJGY1OWQ2YjEwLTM4ODEtNDRiYy05OTgwLTdmMTIwMjhiMDdkY0ouCgh0YXNrX2tl
eRIiCiAyN2VmMzhjYzk5ZGE0YThkZWQ3MGVkNDA2ZTQ0YWI4NkoxCgd0YXNrX2lkEiYKJGU2Mzdh
ODM1LTZiZjMtNDk5NC1iMjczLWU5ZjYzOWEwYmE5NXoCGAGFAQABAAASywkKEAwM1HgGpiGyl6rQ
LeVsYFsSCJN0H+EImgQNKgxDcmV3IENyZWF0ZWQwATmwCsG6cUz4F0HYksW6cUz4F0oaCg5jcmV3
YWlfdmVyc2lvbhIICgYwLjYxLjBKGgoOcHl0aG9uX3ZlcnNpb24SCAoGMy4xM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hlY3V0aW9uPyI6IGZhbHNlLCAibWF4
X3JldHJ5X2xpbWl0IjogMiwgInRvb2xzX25hbWVzIjogW119XUr8AQoKY3Jld190YXNrcxLtAQrq
AVt7ImtleSI6ICIyN2VmMzhjYzk5ZGE0YThkZWQ3MGVkNDA2ZTQ0YWI4NiIsICJpZCI6ICI1YjY4
MzlmMC1jZTdmLTQ1MjUtOTA0MS0yNDA3OGY4ODQyYjAiLCAiYXN5bmNfZXhlY3V0aW9uPyI6IGZh
bHNlLCAiaHVtYW5faW5wdXQ/IjogZmFsc2UsICJhZ2VudF9yb2xlIjogIk1hbmFnZXIiLCAiYWdl
bnRfa2V5IjogIjg5Y2YzMTFiNDhiNTIxNjlkNDJmMzkyNWM1YmUxYzVhIiwgInRvb2xzX25hbWVz
IjogW119XXoCGAGFAQABAAASjgIKENITRuTzJvz4egiwtMnZ6vcSCPj1izbtPyMQKgxUYXNrIENy
ZWF0ZWQwATlAzIK7cUz4F0EQzoO7cUz4F0ouCghjcmV3X2tleRIiCiA3NDI3NTczMTJlZjdiYjRl
ZTBiMDY2MmQxYzJlMjE3OUoxCgdjcmV3X2lkEiYKJDcxMGI3YzQzLTEyYmEtNDZjNy1iOWVjLWNk
M2MxODk4Y2FhZEouCgh0YXNrX2tleRIiCiAyN2VmMzhjYzk5ZGE0YThkZWQ3MGVkNDA2ZTQ0YWI4
NkoxCgd0YXNrX2lkEiYKJDViNjgzOWYwLWNlN2YtNDUyNS05MDQxLTI0MDc4Zjg4NDJiMHoCGAGF
AQABAAA=
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '2000'
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:
- Tue, 24 Sep 2024 21:48:32 GMT
status:
code: 200
message: OK
- request:
body: '{"messages": [{"role": "system", "content": "You are Scorer. You''re an
expert scorer, specialized in scoring titles.\nYour personal goal is: Score
@@ -138,15 +207,15 @@ interactions:
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: Give a score for the title ''The impact of AI in
the future of work''\n\nThis is the expect criteria for your final answer: Your
best answer to your coworker asking you this, accounting for the context shared.\nyou
MUST return the actual complete content as the final answer, not a summary.\n\nThis
is the context you''re working with:\nPlease provide an integer score between
1-5 for the title ''The impact of AI in the future of work''. This score should
reflect the relevance, clarity, and impact of the title.\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"}'
"content": "\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: Your best answer to your coworker asking you this, accounting
for the context shared.\nyou MUST return the actual complete content as the
final answer, not a summary.\n\nThis is the context you''re working with:\nYour
task is to evaluate the provided title on a scale from 1 to 5 based on criteria
such as relevance, clarity, and intrigue.\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"}'
headers:
accept:
- application/json
@@ -155,12 +224,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1162'
- '1149'
content-type:
- application/json
cookie:
- __cf_bm=iOyeV6o_mR0USNA.hPdpKPtAzYgMoprpObRHvn0tmcc-1727120402-1.0.1.1-yMOSz4qncmM1wdtrwFfBQNfITkLs2w_sxijeM44F7aSIrclbkQ2G_18su02eVMVPMW2O55B1rty8BiY_WAoayg;
_cfuvid=9K_ipT1uTVyDTneB1W5OZHPxCh36aOsDZCBnsQTONqQ-1727119501207-0.0.1.1-604800000
- __cf_bm=9.8sBYBkvBR8R1K_bVF7xgU..80XKlEIg3N2OBbTSCU-1727214102-1.0.1.1-.qiTLXbPamYUMSuyNsOEB9jhGu.jOifujOrx9E2JZvStbIZ9RTIiE44xKKNfLPxQkOi6qAT3h6htK8lPDGV_5g;
_cfuvid=lbRdAddVWV6W3f5Dm9SaOPWDUOxqtZBSPr_fTW26nEA-1727213194587-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -184,19 +253,23 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-AAjLhW1aEpXrcJ3xRtrjwmMPgNgdH\",\n \"object\":
\"chat.completion\",\n \"created\": 1727120965,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-AB7gVWj6JmMibt7mwANbQBq91qey2\",\n \"object\":
\"chat.completion\",\n \"created\": 1727214511,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"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\":
235,\n \"completion_tokens\": 13,\n \"total_tokens\": 248,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
\"assistant\",\n \"content\": \"Thought: I now can give a great answer\\nFinal
Answer: 4. The title 'The impact of AI in the future of work' is clear and directly
addresses a highly relevant and intriguing topic. It captures the essence of
how AI could shape the job market, which is a subject of significant interest.
However, it could be more specific or detailed to achieve a perfect score.\",\n
\ \"refusal\": null\n },\n \"logprobs\": null,\n \"finish_reason\":
\"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\": 234,\n \"completion_tokens\":
77,\n \"total_tokens\": 311,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_52a7f40b0b\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7d0ed48baaa4c7-MIA
- 8c85faa6cfcd1cf3-GRU
Connection:
- keep-alive
Content-Encoding:
@@ -204,7 +277,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:49:26 GMT
- Tue, 24 Sep 2024 21:48:32 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -216,11 +289,11 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '289'
- '643'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15552000; includeSubDomains; preload
- max-age=31536000; includeSubDomains; preload
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
@@ -228,13 +301,13 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999720'
- '29999723'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_d61278f225f5108015ec597e8a4adf3c
- req_133da93827bffd651411aa405d650b76
http_version: HTTP/1.1
status_code: 200
- request:
@@ -271,14 +344,20 @@ interactions:
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:"}, {"role": "user", "content": "To provide a score for the
given title \"The impact of AI in the future of work,\" I will delegate this
task to the Scorer, who is responsible for scoring tasks based on specific guidelines.\n\nAction:
Delegate work to coworker\nAction Input: {\"task\": \"Give a score for the title
''The impact of AI in the future of work''\", \"context\": \"Please provide
an integer score between 1-5 for the title ''The impact of AI in the future
of work''. This score should reflect the relevance, clarity, and impact of the
title.\", \"coworker\": \"Scorer\"}\nObservation: 4"}], "model": "gpt-4o"}'
on it!\n\nThought:"}, {"role": "assistant", "content": "Thought: To provide
an accurate score for the title \"The impact of AI in the future of work,\"
I need to delegate the task of scoring it to the Scorer, who is specialized
in this activity.\n\nAction: Delegate work to coworker\nAction Input: {\"coworker\":
\"Scorer\", \"task\": \"Give me an integer score between 1-5 for the following
title: ''The impact of AI in the future of work''\", \"context\": \"Your task
is to evaluate the provided title on a scale from 1 to 5 based on criteria such
as relevance, clarity, and intrigue.\"}\n\nObservation: The scorer has received
the task to score the title ''The impact of AI in the future of work''.\nObservation:
4. The title ''The impact of AI in the future of work'' is clear and directly
addresses a highly relevant and intriguing topic. It captures the essence of
how AI could shape the job market, which is a subject of significant interest.
However, it could be more specific or detailed to achieve a perfect score."}],
"model": "gpt-4o"}'
headers:
accept:
- application/json
@@ -287,12 +366,12 @@ interactions:
connection:
- keep-alive
content-length:
- '3207'
- '3613'
content-type:
- application/json
cookie:
- __cf_bm=iOyeV6o_mR0USNA.hPdpKPtAzYgMoprpObRHvn0tmcc-1727120402-1.0.1.1-yMOSz4qncmM1wdtrwFfBQNfITkLs2w_sxijeM44F7aSIrclbkQ2G_18su02eVMVPMW2O55B1rty8BiY_WAoayg;
_cfuvid=9K_ipT1uTVyDTneB1W5OZHPxCh36aOsDZCBnsQTONqQ-1727119501207-0.0.1.1-604800000
- __cf_bm=9.8sBYBkvBR8R1K_bVF7xgU..80XKlEIg3N2OBbTSCU-1727214102-1.0.1.1-.qiTLXbPamYUMSuyNsOEB9jhGu.jOifujOrx9E2JZvStbIZ9RTIiE44xKKNfLPxQkOi6qAT3h6htK8lPDGV_5g;
_cfuvid=lbRdAddVWV6W3f5Dm9SaOPWDUOxqtZBSPr_fTW26nEA-1727213194587-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -316,19 +395,20 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-AAjLjakh08rGjqYokPVqY6xIpnih9\",\n \"object\":
\"chat.completion\",\n \"created\": 1727120967,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-AB7gWvoNTNn6C1ZVbf5LEjk6zmRlG\",\n \"object\":
\"chat.completion\",\n \"created\": 1727214512,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I now know the final answer\\nFinal
\"assistant\",\n \"content\": \"Thought: I now know the final answer
as the Scorer has provided the score for the title based on the given criteria.\\n\\nFinal
Answer: 4\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
716,\n \"completion_tokens\": 14,\n \"total_tokens\": 730,\n \"completion_tokens_details\":
803,\n \"completion_tokens\": 30,\n \"total_tokens\": 833,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7d0ed859a4a4c7-MIA
- 8c85faad48021cf3-GRU
Connection:
- keep-alive
Content-Encoding:
@@ -336,7 +416,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:49:27 GMT
- Tue, 24 Sep 2024 21:48:33 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -348,11 +428,11 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '242'
- '454'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15552000; includeSubDomains; preload
- max-age=31536000; includeSubDomains; preload
x-ratelimit-limit-requests:
- '10000'
x-ratelimit-limit-tokens:
@@ -360,13 +440,13 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999224'
- '29999125'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 1ms
x-request-id:
- req_546662b9acd4b7af554b383f99f81974
- req_32907c02e96c6932e9424220bb24bb7a
http_version: HTTP/1.1
status_code: 200
version: 1