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,21 +56,21 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-AAiy8MccDskNvL26mxPPzqRQGWJwu\",\n \"object\":
\"chat.completion\",\n \"created\": 1727119504,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-AB7LJrcfzeIAbDOqPlg2onV3j8Kjt\",\n \"object\":
\"chat.completion\",\n \"created\": 1727213197,\n \"model\": \"gpt-4o-2024-05-13\",\n
\ \"choices\": [\n {\n \"index\": 0,\n \"message\": {\n \"role\":
\"assistant\",\n \"content\": \"Thought: I need to find the result of
multiplying 3 by 4 using the available tool.\\n\\nAction: multiplier\\nAction
Input: {\\\"first_number\\\": 3, \\\"second_number\\\": 4}\",\n \"refusal\":
\"assistant\",\n \"content\": \"Thought: I need to calculate the product
of 3 and 4 using the multiplier tool.\\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\":
41,\n \"total_tokens\": 350,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
40,\n \"total_tokens\": 349,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7ceb287a61228a-MIA
- 8c85da944ad41cf3-GRU
Connection:
- keep-alive
Content-Encoding:
@@ -78,7 +78,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:25:05 GMT
- Tue, 24 Sep 2024 21:26:38 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -90,11 +90,11 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '892'
- '634'
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:
@@ -108,7 +108,7 @@ interactions:
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_e573cee35dd4ed7052374c2076bcfdfd
- req_d6f239e9d2dd3e55735ea7643e2e8947
http_version: HTTP/1.1
status_code: 200
- request:
@@ -130,8 +130,8 @@ 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": "Thought: I need
to find the result of multiplying 3 by 4 using the available tool.\n\nAction:
job depends on it!\n\nThought:"}, {"role": "assistant", "content": "Thought:
I need to calculate the product of 3 and 4 using the multiplier tool.\n\nAction:
multiplier\nAction Input: {\"first_number\": 3, \"second_number\": 4}\nObservation:
12"}], "model": "gpt-4o"}'
headers:
@@ -142,12 +142,12 @@ interactions:
connection:
- keep-alive
content-length:
- '1673'
- '1674'
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:
@@ -171,19 +171,20 @@ interactions:
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
content: "{\n \"id\": \"chatcmpl-AAiyARhQJG0O7z0TsRq5mpVTnzItT\",\n \"object\":
\"chat.completion\",\n \"created\": 1727119506,\n \"model\": \"gpt-4o-2024-05-13\",\n
content: "{\n \"id\": \"chatcmpl-AB7LKsUxoSV7ZQPbiPvImr7JNydrA\",\n \"object\":
\"chat.completion\",\n \"created\": 1727213198,\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
Answer: 12\",\n \"refusal\": null\n },\n \"logprobs\": null,\n
\ \"finish_reason\": \"stop\"\n }\n ],\n \"usage\": {\n \"prompt_tokens\":
358,\n \"completion_tokens\": 14,\n \"total_tokens\": 372,\n \"completion_tokens_details\":
{\n \"reasoning_tokens\": 0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
\"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\": 357,\n \"completion_tokens\":
21,\n \"total_tokens\": 378,\n \"completion_tokens_details\": {\n \"reasoning_tokens\":
0\n }\n },\n \"system_fingerprint\": \"fp_e375328146\"\n}\n"
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 8c7ceb2ffce6228a-MIA
- 8c85da9a1b0e1cf3-GRU
Connection:
- keep-alive
Content-Encoding:
@@ -191,7 +192,7 @@ interactions:
Content-Type:
- application/json
Date:
- Mon, 23 Sep 2024 19:25:06 GMT
- Tue, 24 Sep 2024 21:26:39 GMT
Server:
- cloudflare
Transfer-Encoding:
@@ -203,11 +204,11 @@ interactions:
openai-organization:
- crewai-iuxna1
openai-processing-ms:
- '413'
- '392'
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 +216,13 @@ interactions:
x-ratelimit-remaining-requests:
- '9999'
x-ratelimit-remaining-tokens:
- '29999604'
- '29999605'
x-ratelimit-reset-requests:
- 6ms
x-ratelimit-reset-tokens:
- 0s
x-request-id:
- req_1269cefbd31802ed3d9a39c843df5411
- req_fe4d921fc29028a2584387b8a288e2eb
http_version: HTTP/1.1
status_code: 200
version: 1