Responses
CamelStep returns standard JSON responses. The structure matches the OpenAI Chat Completion object.
The Response Object
JSON
{
"id": "chatcmpl-123", // Unique identifier for the completion
"object": "chat.completion", // Object type
"created": 1677652288, // Unix timestamp
"model": "google/gemini-pro", // The model used
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello world!" // The generated response
},
"finish_reason": "stop" // Why generation ended (stop, length, content_filter)
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}Finish Reasons
stop: The model hit a natural stop point or a provided stop sequence.length: The maximum number of tokens specified in the request was reached.content_filter: Content was omitted due to a content policy violation.