- Issue created by @AlfTheCat
- 🇬🇧United Kingdom scott_euser
I think we can auto-retrieve that information. It looks like the manual job processing does it here https://git.drupalcode.org/project/tmgmt/-/blob/8.x-1.x/src/Form/JobItem... so I think the steps here would be to figure out how to build that form via the job info to extra field type + max length + other settings as needed, passing those as instructions for the field.
- 🇬🇧United Kingdom scott_euser
Shifting this over to https://www.drupal.org/project/ai_tmgmt → to work on. Thanks!
- 🇬🇧United Kingdom scott_euser
Hmmm its an interesting idea. We do make at least 1 AI call per field (multiple if the text gets chunked). I don't see how to determine which field is getting processed though from the JobItem, tried looking at getFieldDefinitions() and similar methods but no joy.
It is by the way easier to explore if you start from 🐛 Reduce redundant batch runner Active branch there (until it gets merged). This is because the 1.0.x branch does not contain JobItem, only contains Job when process each batch operation.
- 🇹🇭Thailand AlfTheCat
Hi @scott_euser, very excited about all the work you've been doing. Looking forward to all of the good stuff this module will have to offer :)
One question, the ai_translate module has a pretty neat interface for specifying prompts per language. Would that be something ai_tmgmt could leverage? Some specific instructions per language would be very useful to have, apart from the field-level instructions from this issue.
- 🇬🇧United Kingdom scott_euser
Hmmm it's possible yeah, maybe you can make a seperate issue for it. It'd be handy to override per language (or fallback to generic default if not overridden)
- 🇹🇭Thailand AlfTheCat
Great, done! ✨ Fallback to ai_translate configuration Active