🎉 Portkey raises Series A - $15M to build AI that never breaks  Read announcement →
from portkey_ai import Portkey
portkey = Portkey(api_key="PORTKEY_API_KEY")
feedback = portkey.feedback.create(
trace_id="REQUEST_TRACE_ID",
value=1
)
print(feedback){
"status": "<string>",
"message": "<string>",
"feedback_ids": [
"<string>"
]
}This endpoint allows users to submit feedback for a particular interaction or response.
from portkey_ai import Portkey
portkey = Portkey(api_key="PORTKEY_API_KEY")
feedback = portkey.feedback.create(
trace_id="REQUEST_TRACE_ID",
value=1
)
print(feedback){
"status": "<string>",
"message": "<string>",
"feedback_ids": [
"<string>"
]
}Documentation Index
Fetch the complete documentation index at: https://portkey-docs-log-export-guide-1773064217.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Unique identifier for the request trace.
Feedback value, an integer between -10 and 10.
-10 <= x <= 10Weight of the feedback, a float between 0 and 1. Default is 1.0.
0 <= x <= 1Additional metadata for the feedback.
Was this page helpful?