Monitoring Metrics
List of metrics Keywords API logs keep track of
Number of tokens in the prompt. Default is 0.
Number of tokens in the completion. Default is 0.
Cost of the operation. Default is 0.
Array of prompt messages. Default is an empty list.
Completion message in JSON format. Default is an empty dictionary.
Latency of the operation in seconds. Default is 0.
Scores in JSON format. Default is an empty dictionary.
Foreign key to the User model.
Foreign key to the OrganizationKey model. Default is the default organization key.
Model used for the operation. Default is an empty string.
Timestamp of the operation. Default is the current time.
Whether the operation failed. Default is false.
Error message if the operation failed. Default is an empty string.
Category of the operation. Default is an empty string.
Time to first token in seconds. Default is 0.
Routing time in seconds. Default is 0.
Sentiment analysis in JSON format. Default is an empty dictionary.
Metadata in JSON format. Default is an empty dictionary.
Whether the operation was streamed. Default is false.
Error code if the operation failed. Default is 0.
Customer identifier. Default is an empty string.
Whether the response was cached. Default is 0.