- Issue created by @marcus_johansson
- Assigned to mjb3141
The current logging function only logs the configurations and prompts, and responses if wanted.
There is metadata and other parameters that could be important to log that would need to be stored in its own system. These are variables like used tokens, repsonse speed, response body size etc. that could be interesting for statistics and cost usage approximations.
This does not necessarily need to be inside the core AI module and would be doable in an external module.
Idea will stay here and set to minor for now until someone sees a busines use case for it.
See: https://www.drupal.org/project/ai/issues/3454810 ✨ Prepare for an Advanced API Logging Fixed
Active
1.0
Code