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

@@ -31,8 +31,8 @@ interactions:
content-type:
- application/json
cookie:
- __cf_bm=4rzJDR3F8S3Dp4B_qwylZU0mdm_WUwmv8vNHHp3IplM-1727119501-1.0.1.1-qobO_Sf88yG1qtXFnLgykvyc9YXR_fm1J7ZpXIhvtynVnsz67Uwcf4122PgHs4GMrlvZMaL6z_UVcVYSYUJOKQ;
_cfuvid=9K_ipT1uTVyDTneB1W5OZHPxCh36aOsDZCBnsQTONqQ-1727119501207-0.0.1.1-604800000
- __cf_bm=rb61BZH2ejzD5YPmLaEJqI7km71QqyNJGTVdNxBq6qk-1727213194-1.0.1.1-pJ49onmgX9IugEMuYQMralzD7oj_6W.CHbSu4Su1z3NyjTGYg.rhgJZWng8feFYah._oSnoYlkTjpK1Wd2C9FA;
_cfuvid=lbRdAddVWV6W3f5Dm9SaOPWDUOxqtZBSPr_fTW26nEA-1727213194587-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -56,20 +56,20 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-AAiy6X2vMFzCi4CsgivU5D6rLurnK\",\n \"object\":
\"chat.completion\",\n \"created\": 1727119502,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-AB7LIYQkWZFFTpqgYl6wMZtTEQLpO\",\n \"object\":
\"chat.completion\",\n \"created\": 1727213196,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"To find out what 3 times 4 is, I need
to multiply these two numbers.\\n\\nAction: multiplier\\nAction Input: {\\\"first_number\\\":
\"assistant\",\n \"content\": \"I need to multiply 3 by 4 to get the
final answer.\\n\\nAction: multiplier\\nAction Input: {\\\"first_number\\\":
3, \\\"second_number\\\": 4}\",\n \"refusal\": null\n },\n \"logprobs\":
null,\n \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
309,\n \"completion_tokens\": 40,\n \"total_tokens\": 349,\n \"completion_tokens_details\":
309,\n \"completion_tokens\": 36,\n \"total_tokens\": 345,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7ceb1bd891228a-MIA
- 8c85da8abe6c1cf3-GRU
Connection:
- keep-alive
Content-Encoding:
@@ -77,7 +77,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:25:03 GMT
- Tue, 24 Sep 2024 21:26:36 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -89,11 +89,11 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '856'
- '525'
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:
@@ -101,13 +101,13 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999649'
- '29999648'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_7c1ac1f0c7f0c0764f5230d056d45491
- req_4245fe9eede1d3ea650f7e97a63dcdbb
http_version: HTTP/1.1
status_code: 200
- request:
@@ -129,10 +129,9 @@ interactions:
final answer: The result of the multiplication.\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 find out what
3 times 4 is, I need to multiply these two numbers.\n\nAction: multiplier\nAction
Input: {\"first_number\": 3, \"second_number\": 4}\nObservation: 12"}], "model":
"gpt-4o"}'
job depends on it!\n\nThought:"}, {"role": "assistant", "content": "I need to
multiply 3 by 4 to get the final answer.\n\nAction: multiplier\nAction Input:
{\"first_number\": 3, \"second_number\": 4}\nObservation: 12"}], "model": "gpt-4o"}'
headers:
accept:
- application/json
@@ -141,12 +140,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1659'
- '1646'
content-type:
- application/json
cookie:
- __cf_bm=4rzJDR3F8S3Dp4B_qwylZU0mdm_WUwmv8vNHHp3IplM-1727119501-1.0.1.1-qobO_Sf88yG1qtXFnLgykvyc9YXR_fm1J7ZpXIhvtynVnsz67Uwcf4122PgHs4GMrlvZMaL6z_UVcVYSYUJOKQ;
_cfuvid=9K_ipT1uTVyDTneB1W5OZHPxCh36aOsDZCBnsQTONqQ-1727119501207-0.0.1.1-604800000
- __cf_bm=rb61BZH2ejzD5YPmLaEJqI7km71QqyNJGTVdNxBq6qk-1727213194-1.0.1.1-pJ49onmgX9IugEMuYQMralzD7oj_6W.CHbSu4Su1z3NyjTGYg.rhgJZWng8feFYah._oSnoYlkTjpK1Wd2C9FA;
_cfuvid=lbRdAddVWV6W3f5Dm9SaOPWDUOxqtZBSPr_fTW26nEA-1727213194587-0.0.1.1-604800000
host:
- api.openai.com
user-agent:
@@ -170,20 +169,20 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-AAiy7pNfXHG5d3gt78t2bu0rCZTt7\",\n \"object\":
\"chat.completion\",\n \"created\": 1727119503,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-AB7LIRK2yiJiNebQLyiMT7fAo73Ac\",\n \"object\":
\"chat.completion\",\n \"created\": 1727213196,\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\\n\\nFinal
Answer: The result of 3 times 4 is 12\",\n \"refusal\": null\n },\n
\ \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n ],\n
\ \"usage\": {\n \"prompt_tokens\": 357,\n \"completion_tokens\": 23,\n
\ \"total_tokens\": 380,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
\"assistant\",\n \"content\": \"Thought: I now know the final answer.\\nFinal
Answer: The result of the multiplication is 12.\",\n \"refusal\": null\n
\ },\n \"logprobs\": null,\n \"finish_reason\": \"stop\"\n }\n
\ ],\n \"usage\": {\n \"prompt_tokens\": 353,\n \"completion_tokens\":
21,\n \"total_tokens\": 374,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7ceb22eaaf228a-MIA
- 8c85da8fcce81cf3-GRU
Connection:
- keep-alive
Content-Encoding:
@@ -191,7 +190,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:25:04 GMT
- Tue, 24 Sep 2024 21:26:37 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -203,11 +202,11 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '517'
- '398'
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:
@@ -215,13 +214,13 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999608'
- '29999613'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_780bcee0cd559e290167efaa52f969a8
- req_7a2c1a8d417b75e8dfafe586a1089504
http_version: HTTP/1.1
status_code: 200
version: 1