Use Drupal AI as dependency
1 unresolved thread
1 unresolved thread
Compare changes
src/Form/MetatagAIConfigForm.php deleted
100644 → 0
+ 0
− 205
'#default_value' => $config->get('metatag_ai.metatagai_endpoint') ?: 'https://api.openai.com/v1/chat/completions',
'#description' => $this->t('Please provide the Max token here to limit the output words. Max token is the limit of tokens combining both input prompt and output text.'),
$form_state->setErrorByName('metatagai_token', $this->t('Access Token contains invalid characters. Only alphanumeric characters, hyphens, and underscores are allowed.'));
$form_state->setErrorByName('metatagai_max_token', $this->t('OpenAI API Max Token must be a number.'));
$form_state->setErrorByName('metatagai_temperature', $this->t('OpenAI Temperature must be a number.'));
$form_state->setErrorByName('metatagai_max_context_length', $this->t('OpenAI Max Context Length must be a number.'));