Requests log
The requests log page is a table view that shows all the API calls that have been made to the Keywords AI. This is useful for debugging and monitoring the API usage.
Components of the Requests Log
Control Bar
The control bar is located at the top of the page.
You can filter and search for logs by various metrics
You can also export the logs in CSV/JSON format by clicking on the Export
button on the top right corner of the control bar.
Log Table
The log table is located in the middle of the page, it shows all the logs that match the search criteria.
You can change the displaying metrics, grouping and ordering by clicking on the Display options
button on the top right corner of the log table.
Side Panel
The side panel is located on the right side of the page. It shows the details of the selected log.
You also see the content of the request and response in text or JSON format.
Displaying Metrics
Timestamp of the API call
The string content of the prompt
The string content of the response
Cost of the API call
Time to first token in seconds, the time from the moment the request to the provider is made until the first token is received.
TTFT + the complete to generate the full response in seconds
Number of tokens in the prompt.
Number of tokens in the response.
Number of tokens in the prompt and response.
The name of the API key used for the request.
The model that responded to the request.
The HTTP status code of the response, >400 means error and will display as an error tag with the status code.
(Beta) If the request is responded from the a cached response.
(Premium Feature) The sentiment score of the last user’s message, from -1 to 1. -1 to -0.25 is negative, -0.25 to 0.25 is neutral, and 0.25 to 1 is positive. This indicates how the user feels about the conversation.
The response might succeed after a few retries or with Keywords AI’s fallback protection, these errors will be logged as warnings.
Advanced Usage
You can use a combination of hotkeys to your advantage to quickly navigate through the dashboard page.
Action | Shortcut |
---|---|
Apply filter | f |
Use search bar | / |
You can quickly pick an option with the following key bindings:
Dropdown | Options & Shortcut |
---|---|
Grouping | 1 :API key 2 : Model 3 : Status 4 :Sentiment 5 : No grouping |
Ordering | 1 : Default 2 : Date 3 : Cost 4 : Latency 5 : TTFT |