from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.feedback.batch_get_completion_feedback(ids=[
"chatcmpl-abc123def456",
"chatcmpl-missing123",
])
# Handle response
print(res){
"results": [
{
"id": "chatcmpl-abc123def456",
"rating": "thumbs_up",
"description": "The response was accurate and helpful.",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
},
{
"id": "chatcmpl-missing123",
"error": "not_found"
}
]
}Retrieves feedback for multiple chat completions in a single batch request.
from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.feedback.batch_get_completion_feedback(ids=[
"chatcmpl-abc123def456",
"chatcmpl-missing123",
])
# Handle response
print(res){
"results": [
{
"id": "chatcmpl-abc123def456",
"rating": "thumbs_up",
"description": "The response was accurate and helpful.",
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:30:00Z"
},
{
"id": "chatcmpl-missing123",
"error": "not_found"
}
]
}Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Request parameters for batch retrieving feedback by multiple request IDs.
Array of request IDs (chatcmpl-xxx or resp-xxx) to retrieve feedback for
1 - 100 elementsOK
Response containing batch feedback results. Each result is either the feedback data or a not_found error.
Array of feedback results in the same order as the input IDs
Error result when the completion/response ID doesn't exist
Show child attributes
Was this page helpful?