llama-stack-mirror/tests/integration/recordings/responses/2983cc1d79f0.json
Matthew Farrellee 1f7e87c647 feat: update Cerebras inference provider to support dynamic model listing
- update Cerebras to use OpenAIMixin
- enable openai completions tests
- enable openai chat completions tests
- disable with n > 1 tests
- add recording for --setup cerebras --subdirs inference --pattern openai

test with: `./scripts/integration-tests.sh --stack-config server:ci-tests --setup cerebras --subdirs inference --pattern openai`
2025-09-18 06:54:05 -04:00

742 lines
22 KiB
JSON

{
"request": {
"method": "POST",
"url": "https://api.cerebras.ai/v1/v1/chat/completions",
"headers": {},
"body": {
"model": "llama-3.3-70b",
"messages": [
{
"role": "user",
"content": "Hello, world!"
}
],
"stream": true
},
"endpoint": "/v1/chat/completions",
"model": "llama-3.3-70b"
},
"response": {
"body": [
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": null,
"function_call": null,
"refusal": null,
"role": "assistant",
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": "Hello",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": "!",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " It",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": "'s",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " nice",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " to",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " meet",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " you",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": ".",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " Is",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " there",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " something",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " I",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " can",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " help",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " you",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " with",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " or",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " would",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " you",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " like",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " to",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": " chat",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": "?",
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": null,
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": null,
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": null
}
},
{
"__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk",
"__data__": {
"id": "chatcmpl-de2bf7d0-0f5d-4f44-977c-209ab8ffa29d",
"choices": [
{
"delta": {
"content": null,
"function_call": null,
"refusal": null,
"role": null,
"tool_calls": null
},
"finish_reason": "stop",
"index": 0,
"logprobs": null
}
],
"created": 1758191361,
"model": "llama-3.3-70b",
"object": "chat.completion.chunk",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": {
"completion_tokens": 25,
"prompt_tokens": 39,
"total_tokens": 64,
"completion_tokens_details": null,
"prompt_tokens_details": {
"audio_tokens": null,
"cached_tokens": 0
}
},
"time_info": {
"queue_time": 0.00030481,
"prompt_time": 0.002094315,
"completion_time": 0.011856632,
"total_time": 0.016039371490478516,
"created": 1758191361
}
}
}
],
"is_streaming": true
}
}