Extend the logging module with advanced meta data

Created on 15 June 2024, 5 months ago

Problem/Motivation

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

Remaining tasks

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024