Error Curl while configuring pinecone

Created on 30 April 2024, 7 months ago
Updated 21 May 2024, 6 months ago

Problem/Motivation

When configuring the API key and hostname for Pinecone in /admin/config/openai/openai-embeddings/settings, I encounter two CURL errors.

Here is my configuration :

I'm currently on a free plan for Pinecone, and I'm not sure if this could be related to the CURL errors.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France jykin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jykin
  • 🇳🇱Netherlands Tr4nzNRG

    I have a feeling that the openai_embeddings module has an issue with the form. You can choose between Milvus and Pinecone plugin.

    But it seems to do a 'try' for Milvus even if you selected the Pinecone plugin causing an error? I disabled public function validateConfigurationForm for both plugins Milvus.php and Pinecone.php to get further.

      /**
       * {@inheritdoc}
       */
      public function validateConfigurationForm(array &$form, FormStateInterface $form_state) {
        $this->setConfiguration($form_state->getValues());
        try {
          $this->listCollections();
        }
        catch (\Exception $exception) {
          $form_state->setErrorByName('hostname', $exception->getMessage());
        }
      }
Production build 0.71.5 2024