- Issue created by @mandclu
- 🇱🇹Lithuania mindaugasd
I have idea to create logger module which would log all AI requests (any contrib or custom module).
The only thing needed is for modules to use guzzle and write a plugin.
For example, I initiated this change in Augmentor to use Drupal client instead of curl 🐛 Consider using openai-php/client library Needs review and patch is already written.If you are interested I can create a project for this idea describing the scope.
I think it is really interesting module.
It would allow to configure pricing and calculate cost, define usage limits and similar things. Automatically handling any Drupal AI module (through guzzle middleware) which have also implemented a plugin (to calculate cost of requests).I already partly described this in https://www.drupal.org/project/aimodels → module, but since that module is deprecated, there is a need for a separate module doing exactly logging functionality separately.
This would also be very beneficial in collaboration between different modules, since it would a common functionality for every module without needing to invent the wheal each time.
- Status changed to Fixed
9 months ago 7:41am 30 April 2024 - 🇯🇵Japan eleonel Itoshima 🇯🇵
I added a new checkbox to debug the input and output of augmentors.
Thanks for your suggestion @mindaugasd but I think we don't need to create a sub-module for a basic input and output logging for a particular augmentor. Also now we have a "Preview" section on each augmentor where you can try and adjust your prompts in a quick way.
Automatically closed - issue fixed for 2 weeks with no activity.