update 2023-07-09 21:04:38
This commit is contained in:
parent
712cf80e2d
commit
e66dede016
@ -189,6 +189,309 @@ class Table extends BaseTable implements Tableinterface
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
],
|
||||
'prompt' => [
|
||||
'name' => [
|
||||
'name' => 'name',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_NAME_LABEL',
|
||||
'type' => 'text',
|
||||
'title' => true,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Prompt',
|
||||
],
|
||||
'integration' => [
|
||||
'name' => 'integration',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_INTEGRATION_LABEL',
|
||||
'type' => 'list',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Prompt',
|
||||
],
|
||||
'cache_behaviour' => [
|
||||
'name' => 'cache_behaviour',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_CACHE_BEHAVIOUR_LABEL',
|
||||
'type' => 'list',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Prompt',
|
||||
],
|
||||
'abbreviation' => [
|
||||
'name' => 'abbreviation',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_ABBREVIATION_LABEL',
|
||||
'type' => 'targettranslations',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Prompt',
|
||||
],
|
||||
'guid' => [
|
||||
'name' => 'guid',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_GUID_LABEL',
|
||||
'type' => 'text',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'publishing',
|
||||
],
|
||||
'model' => [
|
||||
'name' => 'model',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_MODEL_LABEL',
|
||||
'type' => 'list',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'frequency_penalty_override' => [
|
||||
'name' => 'frequency_penalty_override',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_FREQUENCY_PENALTY_OVERRIDE_LABEL',
|
||||
'type' => 'radio',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'presence_penalty' => [
|
||||
'name' => 'presence_penalty',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_PRESENCE_PENALTY_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'n_override' => [
|
||||
'name' => 'n_override',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_N_OVERRIDE_LABEL',
|
||||
'type' => 'radio',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'top_p' => [
|
||||
'name' => 'top_p',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_TOP_P_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'messages' => [
|
||||
'name' => 'messages',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_MESSAGES_LABEL',
|
||||
'type' => 'subform',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => 'json',
|
||||
'tab_name' => 'Prompt',
|
||||
],
|
||||
'response_retrieval' => [
|
||||
'name' => 'response_retrieval',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_RESPONSE_RETRIEVAL_LABEL',
|
||||
'type' => 'radio',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Prompt',
|
||||
],
|
||||
'cache_capacity' => [
|
||||
'name' => 'cache_capacity',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_CACHE_CAPACITY_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Prompt',
|
||||
],
|
||||
'top_p_override' => [
|
||||
'name' => 'top_p_override',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_TOP_P_OVERRIDE_LABEL',
|
||||
'type' => 'radio',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'n' => [
|
||||
'name' => 'n',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_N_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'max_tokens_override' => [
|
||||
'name' => 'max_tokens_override',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_MAX_TOKENS_OVERRIDE_LABEL',
|
||||
'type' => 'radio',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'max_tokens' => [
|
||||
'name' => 'max_tokens',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_MAX_TOKENS_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'presence_penalty_override' => [
|
||||
'name' => 'presence_penalty_override',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_PRESENCE_PENALTY_OVERRIDE_LABEL',
|
||||
'type' => 'radio',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'temperature' => [
|
||||
'name' => 'temperature',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_TEMPERATURE_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'frequency_penalty' => [
|
||||
'name' => 'frequency_penalty',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_FREQUENCY_PENALTY_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
'temperature_override' => [
|
||||
'name' => 'temperature_override',
|
||||
'label' => 'COM_GETBIBLE_PROMPT_TEMPERATURE_OVERRIDE_LABEL',
|
||||
'type' => 'radio',
|
||||
'title' => false,
|
||||
'list' => 'prompts',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Open AI',
|
||||
],
|
||||
],
|
||||
'open_ai_response' => [
|
||||
'response_id' => [
|
||||
'name' => 'response_id',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_ID_LABEL',
|
||||
'type' => 'text',
|
||||
'title' => true,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
'prompt' => [
|
||||
'name' => 'prompt',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_PROMPT_LABEL',
|
||||
'type' => 'prompts',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
'response_object' => [
|
||||
'name' => 'response_object',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_OBJECT_LABEL',
|
||||
'type' => 'text',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
'response_model' => [
|
||||
'name' => 'response_model',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_MODEL_LABEL',
|
||||
'type' => 'text',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
'total_tokens' => [
|
||||
'name' => 'total_tokens',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_TOTAL_TOKENS_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
'completion_tokens' => [
|
||||
'name' => 'completion_tokens',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_COMPLETION_TOKENS_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
'prompt_tokens' => [
|
||||
'name' => 'prompt_tokens',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_PROMPT_TOKENS_LABEL',
|
||||
'type' => 'number',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
'response_created' => [
|
||||
'name' => 'response_created',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_RESPONSE_CREATED_LABEL',
|
||||
'type' => 'text',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_responses',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Details',
|
||||
],
|
||||
],
|
||||
'open_ai_message' => [
|
||||
'role' => [
|
||||
'name' => 'role',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_MESSAGE_ROLE_LABEL',
|
||||
'type' => 'list',
|
||||
'title' => true,
|
||||
'list' => 'open_ai_messages',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Message',
|
||||
],
|
||||
'open_ai_response' => [
|
||||
'name' => 'open_ai_response',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_MESSAGE_OPEN_AI_RESPONSE_LABEL',
|
||||
'type' => 'openairesponses',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_messages',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Message',
|
||||
],
|
||||
'prompt' => [
|
||||
'name' => 'prompt',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_MESSAGE_PROMPT_LABEL',
|
||||
'type' => 'prompts',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_messages',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Message',
|
||||
],
|
||||
'content' => [
|
||||
'name' => 'content',
|
||||
'label' => 'COM_GETBIBLE_OPEN_AI_MESSAGE_CONTENT_LABEL',
|
||||
'type' => 'textarea',
|
||||
'title' => false,
|
||||
'list' => 'open_ai_messages',
|
||||
'store' => NULL,
|
||||
'tab_name' => 'Message',
|
||||
],
|
||||
],
|
||||
'password' => [
|
||||
'name' => [
|
||||
'name' => 'name',
|
||||
|
Loading…
x
Reference in New Issue
Block a user