Skip to content

Commit

Permalink
Issue #3425679: Fix PHP 8.2 issue with the Form Assembler which was m…
Browse files Browse the repository at this point in the history
…ixing global extra featuers configs on submit
  • Loading branch information
Natshah committed Mar 19, 2024
1 parent 5a4bde7 commit f36c765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FormBit/varbase_ai.formbit.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ function varbase_ai_build_formbit(array &$formbit, FormStateInterface &$form_sta
$formbit['api_key'] = [
'#type' => 'textfield',
'#title' => ('API Key'),
'#default_value' => "",
'#default_value' => "sk-change-this",
'#description' => t('The API key is required to interface with OpenAI services. Get your API key by signing up on the <a href=":link" target="_blank">OpenAI website</a>.', [':link' => 'https://openai.com/api']),
'#element_validate' => ['validate_formbit_openai_api_key'],
];

$formbit['api_org'] = [
'#type' => 'textfield',
'#title' => t('Organization ID'),
'#default_value' => "",
'#default_value' => "org-change-this",
'#description' => t('The organization ID on your OpenAI account. This is required for some OpenAI services to work correctly.'),
'#element_validate' => ['validate_formbit_openai_api_org'],
];
Expand Down

0 comments on commit f36c765

Please sign in to comment.