mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-14 22:33:48 +00:00
IDs are now deterministic hashes based on request content, and timestamps are normalized to constants, eliminating spurious changes when re-recording tests. ## Changes - Updated `inference_recorder.py` to normalize IDs and timestamps during recording - Added `scripts/normalize_recordings.py` utility to re-normalize existing recordings - Created documentation in `tests/integration/recordings/README.md` - Normalized 350 existing recording files
756 lines
22 KiB
JSON
756 lines
22 KiB
JSON
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "https://api.together.xyz/v1/v1/chat/completions",
|
|
"headers": {},
|
|
"body": {
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"messages": [
|
|
{
|
|
"role": "user",
|
|
"content": "Hello, world!"
|
|
}
|
|
],
|
|
"stream": true
|
|
},
|
|
"endpoint": "/v1/chat/completions",
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free"
|
|
},
|
|
"response": {
|
|
"body": [
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "Hello",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 9906
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": "Hello",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "!",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": null
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": "!",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " It",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 1102
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " It",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "'s",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 596
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": "'s",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " nice",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 6555
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " nice",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " to",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 311
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " to",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " meet",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 3449
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " meet",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " you",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 499
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " you",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": ".",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 13
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": ".",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " Is",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 2209
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " Is",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " there",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 1070
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " there",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " something",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 2555
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " something",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " I",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 358
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " I",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " can",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 649
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " can",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " help",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 1520
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " help",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " you",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 499
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " you",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " with",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 449
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " with",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " or",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 477
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " or",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " would",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 1053
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " would",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " you",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 499
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " you",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " like",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 1093
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " like",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " to",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 311
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " to",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": " chat",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 6369
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": " chat",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "?",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 30
|
|
},
|
|
"finish_reason": null,
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": "?",
|
|
"seed": null
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": null
|
|
}
|
|
},
|
|
{
|
|
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
|
|
"__data__": {
|
|
"id": "rec-6730dcde0b73",
|
|
"choices": [
|
|
{
|
|
"delta": {
|
|
"content": "",
|
|
"function_call": null,
|
|
"refusal": null,
|
|
"role": "assistant",
|
|
"tool_calls": null,
|
|
"token_id": 128009
|
|
},
|
|
"finish_reason": "stop",
|
|
"index": 0,
|
|
"logprobs": null,
|
|
"text": "",
|
|
"seed": 16158686754257986000
|
|
}
|
|
],
|
|
"created": 0,
|
|
"model": "meta-llama/Llama-3.3-70B-Instruct-Turbo-Free",
|
|
"object": "chat.completion.chunk",
|
|
"service_tier": null,
|
|
"system_fingerprint": null,
|
|
"usage": {
|
|
"completion_tokens": 25,
|
|
"prompt_tokens": 39,
|
|
"total_tokens": 64,
|
|
"completion_tokens_details": null,
|
|
"prompt_tokens_details": null,
|
|
"cached_tokens": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"is_streaming": true
|
|
}
|
|
}
|