llama-stack-mirror/tests/integration/recordings/responses/3cdb5cab6ce6.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

66 lines
1.7 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": "Which planet do humans live on?"
}
],
"stream": false
},
"endpoint": "/v1/chat/completions",
"model": "llama-3.3-70b"
},
"response": {
"body": {
"__type__": "openai.types.chat.chat_completion.ChatCompletion",
"__data__": {
"id": "chatcmpl-839aab91-21a7-4ed9-b224-d22e524eda37",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"content": "Humans live on Earth.",
"refusal": null,
"role": "assistant",
"annotations": null,
"audio": null,
"function_call": null,
"tool_calls": null
}
}
],
"created": 1758191360,
"model": "llama-3.3-70b",
"object": "chat.completion",
"service_tier": null,
"system_fingerprint": "fp_c5ec625e72d41732d8fd",
"usage": {
"completion_tokens": 6,
"prompt_tokens": 42,
"total_tokens": 48,
"completion_tokens_details": null,
"prompt_tokens_details": {
"audio_tokens": null,
"cached_tokens": 0
}
},
"time_info": {
"queue_time": 0.00028033,
"prompt_time": 0.001467015,
"completion_time": 0.007069593,
"total_time": 0.010509490966796875,
"created": 1758191360
}
}
},
"is_streaming": false
}
}