diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion.json index bede5753a2a..b995df2d445 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion.json @@ -68,7 +68,14 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 - } + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 + }, + "traceId": "litellm-test-6a51ae70-a4e7-499e-afcd-dce2a3b31850" }, "timestamp": "2025-01-16T19:28:55.125258Z" } diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_bedrock_call.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_bedrock_call.json index aa96e5949e5..d9f52477fc8 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_bedrock_call.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_bedrock_call.json @@ -63,7 +63,13 @@ "output": 10, "unit": "TOKENS", "totalCost": 0.00018 - } + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 10 + } }, "timestamp": "2025-05-26T21:13:16.797156Z" } diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_complex_metadata.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_complex_metadata.json index 1e60a0479b1..348fe5956da 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_complex_metadata.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_complex_metadata.json @@ -109,6 +109,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:27:51.703046Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_langfuse_metadata.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_langfuse_metadata.json index a217a901285..b63bedf16a2 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_langfuse_metadata.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_langfuse_metadata.json @@ -87,6 +87,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:19:11.235541Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_no_choices.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_no_choices.json index be21c297dcc..f4242d7edc3 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_no_choices.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_no_choices.json @@ -58,6 +58,12 @@ "output": 10, "unit": "TOKENS", "totalCost": 3.5e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 10 } }, "timestamp": "2025-02-07T00:23:27.670175Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_router.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_router.json index 021c2b1b73c..84ea9768f01 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_router.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_router.json @@ -73,6 +73,12 @@ "output": 10, "unit": "TOKENS", "totalCost": 3.5e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 10 } }, "timestamp": "2025-05-24T17:01:19.408586Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags.json index 07fca9daafb..e7442ce0a02 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags.json @@ -77,6 +77,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T15:31:28.964179Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags_stream.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags_stream.json index d7003c3f99e..04c24c8963a 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags_stream.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_tags_stream.json @@ -77,6 +77,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T16:38:26.017252Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_vertex_call.json b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_vertex_call.json index 51a4fac0579..3e27f5b54b4 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_vertex_call.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/completion_with_vertex_call.json @@ -61,6 +61,12 @@ "output": 10, "unit": "TOKENS", "totalCost": 7.5e-06 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 10 } }, "timestamp": "2025-05-26T21:15:40.610953Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata.json b/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata.json index e8f01f6d723..a21ab058fcd 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata.json @@ -84,6 +84,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:59:39.368310Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata_2.json b/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata_2.json index 786fe20e7b4..3f400f65914 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata_2.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/complex_metadata_2.json @@ -76,6 +76,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T18:06:50.959850Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/empty_metadata.json b/tests/logging_callback_tests/langfuse_expected_request_body/empty_metadata.json index 69db4314f0f..1873d4a6ea1 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/empty_metadata.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/empty_metadata.json @@ -70,6 +70,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:59:32.889548Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_function.json b/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_function.json index eae3134555e..34e3c9f8daf 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_function.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_function.json @@ -70,6 +70,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:59:36.162997Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_lock.json b/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_lock.json index 69db4314f0f..1873d4a6ea1 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_lock.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/metadata_with_lock.json @@ -70,6 +70,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:59:32.889548Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/nested_metadata.json b/tests/logging_callback_tests/langfuse_expected_request_body/nested_metadata.json index c4fe594fa14..4d6ce12ec6d 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/nested_metadata.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/nested_metadata.json @@ -76,6 +76,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:55:28.855732Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata.json b/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata.json index d348ac50392..5e5edc795ec 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata.json @@ -76,6 +76,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:53:53.754511Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata2.json b/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata2.json index d5468d302c9..7bbf4e4eeee 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata2.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata2.json @@ -80,6 +80,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:56:35.478171Z" diff --git a/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata3.json b/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata3.json index 1107766993a..fcdcb47aea5 100644 --- a/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata3.json +++ b/tests/logging_callback_tests/langfuse_expected_request_body/simple_metadata3.json @@ -84,6 +84,12 @@ "output": 20, "unit": "TOKENS", "totalCost": 5.4999999999999995e-05 + }, + "usageDetails": { + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "input": 10, + "output": 20 } }, "timestamp": "2025-01-22T17:56:38.787196Z"