from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.feedback.get_completion_feedback(id="chatcmpl-abc123def456")
# Handle response
print(res){
"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"
}Retrieves the existing feedback rating and description for a specific chat completion.
from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.feedback.get_completion_feedback(id="chatcmpl-abc123def456")
# Handle response
print(res){
"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"
}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 ID to retrieve feedback for.
OK
Response containing the feedback entry for the requested resource.
The request ID that this feedback is associated with
The feedback rating indicating user satisfaction
thumbs_up, thumbs_down Optional detailed feedback description providing additional context or explanation (max 2000 characters)
2000Timestamp when the feedback was created
Timestamp when the feedback was last updated
Was this page helpful?