From 1578cdd9a834f9548c961ab1d5806ab3afa41b5a Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Tue, 11 Mar 2025 11:40:06 +0100 Subject: [PATCH] Snapshot update with the new updated tool_call_id. --- ...ash_llama_grammar_tools_choice_stream.json | 68 +++++++++---------- ...test_flash_llama_grammar_tools_openai.json | 68 +++++++++---------- 2 files changed, 68 insertions(+), 68 deletions(-) diff --git a/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_choice_stream.json b/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_choice_stream.json index 3342dbff7..f5a2e9556 100644 --- a/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_choice_stream.json +++ b/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_choice_stream.json @@ -11,7 +11,7 @@ "arguments": "{", "name": "get_current_weather" }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -22,7 +22,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -41,7 +41,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -52,7 +52,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -71,7 +71,7 @@ "arguments": "location", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -82,7 +82,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -101,7 +101,7 @@ "arguments": "\":", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -112,7 +112,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -131,7 +131,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -142,7 +142,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -161,7 +161,7 @@ "arguments": "Bro", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -172,7 +172,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -191,7 +191,7 @@ "arguments": "oklyn", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -202,7 +202,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -221,7 +221,7 @@ "arguments": ",", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -232,7 +232,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -251,7 +251,7 @@ "arguments": " NY", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -262,7 +262,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -281,7 +281,7 @@ "arguments": "\",", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -292,7 +292,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -311,7 +311,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -322,7 +322,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -341,7 +341,7 @@ "arguments": "format", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -352,7 +352,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -371,7 +371,7 @@ "arguments": "\":", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -382,7 +382,7 @@ "logprobs": null } ], - "created": 1741371719, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -401,7 +401,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -412,7 +412,7 @@ "logprobs": null } ], - "created": 1741371720, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -431,7 +431,7 @@ "arguments": "f", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -442,7 +442,7 @@ "logprobs": null } ], - "created": 1741371720, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -461,7 +461,7 @@ "arguments": "ahrenheit", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -472,7 +472,7 @@ "logprobs": null } ], - "created": 1741371720, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -491,7 +491,7 @@ "arguments": "\"}", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -502,7 +502,7 @@ "logprobs": null } ], - "created": 1741371720, + "created": 1741688515, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", diff --git a/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_openai.json b/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_openai.json index 6020cdca3..f21aa4bb8 100644 --- a/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_openai.json +++ b/integration-tests/models/__snapshots__/test_tools_llama/test_flash_llama_grammar_tools_openai.json @@ -13,7 +13,7 @@ "arguments": "{", "name": "get_current_weather" }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -24,7 +24,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -46,7 +46,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -57,7 +57,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -79,7 +79,7 @@ "arguments": "location", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -90,7 +90,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -112,7 +112,7 @@ "arguments": "\":", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -123,7 +123,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -145,7 +145,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -156,7 +156,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -178,7 +178,7 @@ "arguments": "Bro", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -189,7 +189,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -211,7 +211,7 @@ "arguments": "oklyn", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -222,7 +222,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -244,7 +244,7 @@ "arguments": ",", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -255,7 +255,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -277,7 +277,7 @@ "arguments": " NY", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -288,7 +288,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -310,7 +310,7 @@ "arguments": "\",", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -321,7 +321,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -343,7 +343,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -354,7 +354,7 @@ "logprobs": null } ], - "created": 1741370464, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -376,7 +376,7 @@ "arguments": "format", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -387,7 +387,7 @@ "logprobs": null } ], - "created": 1741370465, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -409,7 +409,7 @@ "arguments": "\":", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -420,7 +420,7 @@ "logprobs": null } ], - "created": 1741370465, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -442,7 +442,7 @@ "arguments": " \"", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -453,7 +453,7 @@ "logprobs": null } ], - "created": 1741370465, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -475,7 +475,7 @@ "arguments": "f", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -486,7 +486,7 @@ "logprobs": null } ], - "created": 1741370465, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -508,7 +508,7 @@ "arguments": "ahrenheit", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -519,7 +519,7 @@ "logprobs": null } ], - "created": 1741370465, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk", @@ -541,7 +541,7 @@ "arguments": "\"}", "name": null }, - "id": "", + "id": "0", "index": 0, "type": "function" } @@ -552,7 +552,7 @@ "logprobs": null } ], - "created": 1741370465, + "created": 1741689423, "id": "", "model": "meta-llama/Llama-3.1-8B-Instruct", "object": "chat.completion.chunk",