🇮🇳India @Ishani Patel

Account created on 13 June 2022, almost 3 years ago
  • Drupal Backend Developer at QED42 
#

Recent comments

🇮🇳India Ishani Patel

Hello @joachim,
I've updated the text, please check and review.

Thank you!

🇮🇳India Ishani Patel

Hello @prudloff,
Thanks for the review, and I updated the MR as per your suggestion.
Kindly check.

Thank you!

🇮🇳India Ishani Patel

I've tested with D10.4.5 and D11.1.6 ,checked with adding new language also checked with already added language edit page but not reproduced this error.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've followed the steps and checked with D11.1.6, and using PHP Version 8.3.19
But not reproduce the issue.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've created MR,
Kindly review.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've followed the steps as mentioned and checked with D10.4 and D11. x But I can't replicate this issue.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've also tried with D10.4 and 1.1.x of AI and sub modules, but no luck.

🇮🇳India Ishani Patel

Hello @rosemaryreilman,
I've some solution regarding this error.
Please check the details below.

1. Check Field Configuration in Active Config
- Using this command: drush config:grep field_vt_recipients
=> If they still exist, remove them:
- drush config:delete field.field.monument.field_vt_recipients
- drush config:delete field.storage.monument.field_vt_recipients

2. Also, you can check for Field Definitions in the Database:
- Using query like this: SELECT * FROM config WHERE name LIKE '%field_vt_recipients%';

Hope this solution is helpful for you.
Thank you!

🇮🇳India Ishani Patel

Hello,
I've created an MR from the patch (Since patches are no longer tested, a merge request needs to be provided)

Thank you!

🇮🇳India Ishani Patel

ishani patel made their first commit to this issue’s fork.

🇮🇳India Ishani Patel

Hello,
I've again tested this issue with 1.1.x and it's working like when I created fresh node and go to the translate tab, That page show me error
"Please set a default provider & model for the text translation the AI module settings." If I not set the default provider and model
So it's working correct.
Please checked the attach screencast for the same.

Working Video Link: https://www.loom.com/share/c7d5f508c9114c3a812c34a3a7a18928

Thank you!

🇮🇳India Ishani Patel

Hello,
I've followed the mentioned steps and replicated the issue.
After applying the MR changes and no Ajax issues were faced in the console.
Please follow the screenshot below for reference.

Before Screenshot:

After Screenshot:

Thank you!

🇮🇳India Ishani Patel

This is a duplicate issue of https://www.drupal.org/project/ai/issues/3521769 🐛 AI Settings - Default Model needs refresh when Default Provider changes Active
So I closed this.

🇮🇳India Ishani Patel

Hello @gkffzs,
I've fixed PHPCS and phpstan errors.

Kindly review it.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've created MR.
Kindly review.

Thank You!

🇮🇳India Ishani Patel

Hello,
I've checked with 1.1. x and 1.1.0-beta1 version and enable only AI Core(ai), but not replicate this error.
Please follow the screenshot below for reference.

1. Version 1.1.0-beta1

2. Version 1.1.x

Thank you!

🇮🇳India Ishani Patel

Hello @gkffzs,
I've created MR for the first solution as per your confirmation.
Kindly review.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've removed the sentence and created MR for that.
Kindly review.
Please refer the below screenshot for reference.

Thank you!

🇮🇳India Ishani Patel

Hello @marcus_johansson and @divyansh.gupta
The issue is already in RTBC for making the AI assistant field require:
Please check this Issue link : https://www.drupal.org/project/ai/issues/3520273 🐛 Make an AI Assistant select list field required on AI Chatbot block configuration page Active

Thank you!

🇮🇳India Ishani Patel

Hello,
I've tested MR with below fields:

Label Field Type status
1. Image Image Translatable
2. link Link Not Translatable
3. Media image Entity reference (type:Image) Not Translatable
4. Text long Text (plain, long) Translatable
5. List List (text) Translatable
6. Taxonomy Entity reference(taxonomy) Not Translatable
As I noted like reference fields are not translatable.

Thank you!

🇮🇳India Ishani Patel

Hello,
The issue was resolved after checking this warning: "Method translateText does not exist on provider openai."
Then, configure the 'Translate Text' provider in the AI default settings and resolve.
Please follow the screenshot below:

Thank you!

🇮🇳India Ishani Patel

Hello @marcus_johansson,
I've applied changes as per your suggestion and updated MR

Kindly review and merge it.

Thank you!

🇮🇳India Ishani Patel

ishani patel changed the visibility of the branch 3522829-add-custom-validation to hidden.

🇮🇳India Ishani Patel

Hello @marcus_johansson,
I've created a new branch (3522829-to-resolve-validation-conflict).
Resolved the conflict.

Please check and merge MR: https://git.drupalcode.org/project/ai/-/merge_requests/596

Thank you!

🇮🇳India Ishani Patel

Hello @jurgenhaas,
Sure,Can I go with the below changes:

For point 2. (#token_type)
For point 3. (#element_validate)

Update the field definition like this:
2. Add Token Support to the Field Configuration:

$form['name'] = [
  '#type' => 'textfield',
  '#maxlength' => 1024,
  '#title' => $this->t('Machine name'),
  '#description' => $this->t('Specify the machine name / key of the render element. Tokens are allowed.'),
  '#default_value' => $this->configuration['name'],
  '#element_validate' => [[$this, 'validateName']],
  '#token_types' => ['node', 'user', 'custom'], // Based on your context
];

3. Add Custom Validation

public function validateName(array &$element, FormStateInterface $form_state, array &$complete_form) {
  $value = $element['#value'];

  // Allow token patterns like [entity:property]
  if (preg_match('/^\[.*:.*\]$/', $value)) {
    return;
  }

  // Otherwise, validate as a machine name.
  if (!preg_match('/^[a-z0-9_]+$/', $value)) {
    $form_state->setError($element, $this->t('The name must be a machine-readable name (lowercase letters, numbers, and underscores only) or a valid token like [node:title].'));
  }
}

Let me know your thoughts.
Thank you!

🇮🇳India Ishani Patel

Hello,
I followed the steps mentioned, replicated the issue, and resolved it.
Created MR.

Kindly review.
Thank you!

🇮🇳India Ishani Patel

Hello @valthebald,
As I checked with 1.1. x-dev, Below changes are already there. without any changes.

Google Vertex Provider

This enables the use of Google Vertex Studio for the AI module.

Please refer to the attachment

Thank you!

🇮🇳India Ishani Patel

Hello @jurgenhaas,
I've created MR.
Please check and review.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've created MR.
Please check and review.

Thank you!

🇮🇳India Ishani Patel

Hello @prabha1997, I've checked in the 1.1.x branch and "Use source vocabulary" field is there.
Can you please check if you have added or edited any node that has a taxonomy reference field in that node?
Because when I checked the Article node and Article has its own tag taxonomy, so "Use source vocabulary" field is there, but when you create a node without creating any taxonomy reference field, then the "Use source vocabulary" field is not available in that node.

Please let me know your thoughts.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've checked with 1.1.x of the AI branch, and it is working as expected. Please refer to the attached screenshot.

🇮🇳India Ishani Patel

I've checked with 1.1. x of the AI branch, and it is working as expected. Please refer to the attached screenshot.

Thank you!

🇮🇳India Ishani Patel

Hey @prabha1997,
Can you please check for all other explorer as I done changes for all.

🇮🇳India Ishani Patel

Hello Everyone,
I've added validation regarding changes for all the AI API Explorer.
Please check and review.

Thank you!

🇮🇳India Ishani Patel

Hello @freelylw,
You can try with this {{ body.value|striptags }}
Because body.value gets the raw text content of the field. body alone might give you a rendered version with tags or wrappers still attached.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've checked the AiProviderFormHelper.php file, and I think we need to add '#open' => FALSE, in the generateAiProvidersForm function for the detail element to close by default.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've added custom validation for the prompt and image.
Created MR.
Please check and review.

Follow the working screenshot after applying validation in Embedding Generation Explorer.

Thank you!

🇮🇳India Ishani Patel

Hello Everyone,
I've resolved the issue and raised an MR.
Please check and review.

Working screenshot:

Thank you!

🇮🇳India Ishani Patel

I've Checked with above instruction and I was replicated the same error.
Please following the screenshot

🇮🇳India Ishani Patel

Hello,
I've checked with drupal version : 11.1.6 and all the steps followed as mentioned,
But no any warning appears in my environment.

1. Checked with widget display :

2. Checked with widget (table) display :

Thank you!

🇮🇳India Ishani Patel

Hello Everyone,
I've updated the description and generated MR.
Please review.

🇮🇳India Ishani Patel

Hello,
I've checked the '/admin/modules' page, and the description is already there, as you mentioned in the proposed resolution.
Please check the screenshot below and let me know if any changes are required.

Thank you!

🇮🇳India Ishani Patel

Hello,
I've updated Gemini provider description and raised MR.
Please check and review.

Thank you!

🇮🇳India Ishani Patel

I've been facing the same error,
When I enabled the OpenAI provider and checked in chat explorer with the "streamed" option
Following the screenshot below

Thank you!

Production build 0.71.5 2024