- Issue created by @marcus_johansson
- 🇩🇪Germany marcus_johansson
Related ticket: https://www.drupal.org/project/ai_interpolator/issues/3449260 ✨ Add substr cutoff, on (short) string and text fields. Fixed
- Status changed to Needs review
6 months ago 7:01am 23 May 2024 - 🇩🇪Germany marcus_johansson
Testable using the DEV version of this module and the core AI Interpolator module.
-
Marcus_Johansson →
committed b8025132 on 1.0.x
Issue #3449252 by Marcus_Johansson, nicxvan: Add simple text fields
-
Marcus_Johansson →
committed b8025132 on 1.0.x
- Status changed to RTBC
6 months ago 7:57am 23 May 2024 - 🇮🇳India aman1248
Hy @Marcus_Johansson
I have reviewed it , It has a straight forward fix.Please & Thank You.
** Marking this ticket as RTBC!!
- Status changed to Fixed
6 months ago 8:13am 23 May 2024 - Status changed to Needs review
6 months ago 8:41am 23 May 2024 - 🇩🇪Germany marcus_johansson
Setting back to "Needs Review", since I saw weird behaviour and read about similar behaviour in the Slack channe for contributors.
@Amandeep123 - can you describe how you tested this ticket?
- 🇩🇪Germany marcus_johansson
So, this seems to be credit farming by LN Webworks as per: https://www.drupal.org/project/site_moderators/issues/3431464 → & https://drupal.slack.com/archives/C0451JV7HRD/p1716453768932859
This ticket needs to be actually tested.
- 🇺🇸United States nicxvan
If you add the test steps I'll do my best to review
- 🇩🇪Germany marcus_johansson
Thanks @nicxvan - First off I forgot to post the actual rule(s) is documented as per AC: https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... →
So this rule is the simple one and it enough that you do this for testing:
- Get the DEV version of AI Interpolator and AI Interpolator Open AI.
- Flush the cache.
- Generate some kind of context field or use the Token module to get advanced prompt.
- Generate one of Text (plain, long), Text (formatted, long) or Text (formatted, long, with summary).
- Enable AI Interpolator.
- Choose the rule "OpenAI Simple Text".
- Create some prompt - this is the rule that will take the output as it is, so its the opposite of the normal text rule, that even if you ask it to create 10 fields, those would just be populated in the same text box. Probably you can ask for JSON here as well in theory.
Outside of that you could also test to do the same with the Text (plain) or Text (formatted) field and choose a short maximum length (like 10 chars) and then force a prompt that outputs something longer then this - it should then be substringed to that length.
If you need a testing key to not eat the costs from your own account, let me know.