- Issue created by @marcus_johansson
- π©πͺGermany marcus_johansson
This should take care of adding a custom action to ask for API keys for OpenAI and Anthropic when applying the recipe.
I also added so it removes structure results/detailed output that was decided to be removed, per comment: https://www.drupal.org/project/drupal_cms/issues/3487025#comment-15914211 π AI -KR3 - Making experimenting feel safe. Active and so that only administrator can use the chatbot.
If you want those two later changes as their own MR, let me know.
- First commit to issue fork.
- πΊπΈUnited States phenaproxima Massachusetts
Looks pretty good to me, but these inputs need to support forms too. See https://www.drupal.org/node/3489030 β for docs on that.
- π©πͺGermany marcus_johansson
I've added the form elements, but I didn't really know how to test it, but it should follow the documentation.
- πΊπΈUnited States phenaproxima Massachusetts
That looks right to me. One question I have here is: does it really make sense to use
password
elements? The API keys aren't really passwords, right? I feel like it might be better UX to have them be regular text fields, so the user can ensure that they actually pasted the right thing.But no objections otherwise.
- πΊπΈUnited States phenaproxima Massachusetts
With @marcus_johansson's blessing, I implemented
#states
on these form fields so that we can present users with only a single API key field, and reduce cognitive load.Worked for me in manual testing so I'm gonna merge this guy.
- πΊπΈUnited States phenaproxima Massachusetts
This also fixes a stable-blocking issue, so tagging it as a stable blocker itself.
-
phenaproxima β
committed cb5fa911 on 1.x authored by
marcus_johansson β
Issue #3496952 by marcus_johansson, phenaproxima: Use custom config...
-
phenaproxima β
committed cb5fa911 on 1.x authored by
marcus_johansson β
-
phenaproxima β
committed 42723bf1 on 1.0.x authored by
marcus_johansson β
Issue #3496952 by marcus_johansson, phenaproxima: Use custom config...
-
phenaproxima β
committed 42723bf1 on 1.0.x authored by
marcus_johansson β
Automatically closed - issue fixed for 2 weeks with no activity.