4
0

update 2023-07-10 14:11:31

This commit is contained in:
Robot 2023-07-10 14:11:31 +02:00
parent 0d26f150a5
commit ded890a4d2
Signed by: Robot
GPG Key ID: 14DECD44E7E1BB95
3 changed files with 93 additions and 12 deletions

View File

@ -292,8 +292,8 @@ final class Watcher
// we load the next chapter
$next = $book + 1;
// if we already looked over 66
if ($next >= 67)
// if we already looked over 90
if ($next >= 90)
{
$next = 1;
}
@ -310,7 +310,7 @@ final class Watcher
$try++;
// could not be found :(
if ($try >= 65)
if ($try >= 180)
{
return null;
}
@ -333,10 +333,10 @@ final class Watcher
// we load the previous book
$previous = $book - 1;
// if we already looked over 66
// if we already looked over 90
if ($previous <= 0)
{
$previous = 66;
$previous = 90;
}
// check if this book exist
@ -351,7 +351,7 @@ final class Watcher
$try++;
// could not be found :(
if ($try >= 65)
if ($try >= 180)
{
return null;
}

View File

@ -261,8 +261,8 @@
// we load the next chapter
$next = $book + 1;
// if we already looked over 66
if ($next >= 67)
// if we already looked over 90
if ($next >= 90)
{
$next = 1;
}
@ -279,7 +279,7 @@
$try++;
// could not be found :(
if ($try >= 65)
if ($try >= 180)
{
return null;
}
@ -302,10 +302,10 @@
// we load the previous book
$previous = $book - 1;
// if we already looked over 66
// if we already looked over 90
if ($previous <= 0)
{
$previous = 66;
$previous = 90;
}
// check if this book exist
@ -320,7 +320,7 @@
$try++;
// could not be found :(
if ($try >= 65)
if ($try >= 180)
{
return null;
}

View File

@ -462,6 +462,69 @@ class Table extends BaseTable implements Tableinterface
'store' => NULL,
'tab_name' => 'Details',
],
'n' => [
'name' => 'n',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_N_LABEL',
'type' => 'number',
'title' => false,
'list' => 'open_ai_responses',
'store' => NULL,
'tab_name' => 'Prompt',
],
'frequency_penalty' => [
'name' => 'frequency_penalty',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_FREQUENCY_PENALTY_LABEL',
'type' => 'number',
'title' => false,
'list' => 'open_ai_responses',
'store' => NULL,
'tab_name' => 'Prompt',
],
'presence_penalty' => [
'name' => 'presence_penalty',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_PRESENCE_PENALTY_LABEL',
'type' => 'number',
'title' => false,
'list' => 'open_ai_responses',
'store' => NULL,
'tab_name' => 'Prompt',
],
'model' => [
'name' => 'model',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_MODEL_LABEL',
'type' => 'list',
'title' => false,
'list' => 'open_ai_responses',
'store' => NULL,
'tab_name' => 'Prompt',
],
'top_p' => [
'name' => 'top_p',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_TOP_P_LABEL',
'type' => 'number',
'title' => false,
'list' => 'open_ai_responses',
'store' => NULL,
'tab_name' => 'Prompt',
],
'temperature' => [
'name' => 'temperature',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_TEMPERATURE_LABEL',
'type' => 'number',
'title' => false,
'list' => 'open_ai_responses',
'store' => NULL,
'tab_name' => 'Prompt',
],
'max_tokens' => [
'name' => 'max_tokens',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_MAX_TOKENS_LABEL',
'type' => 'number',
'title' => false,
'list' => 'open_ai_responses',
'store' => NULL,
'tab_name' => 'Prompt',
],
'completion_tokens' => [
'name' => 'completion_tokens',
'label' => 'COM_GETBIBLE_OPEN_AI_RESPONSE_COMPLETION_TOKENS_LABEL',
@ -518,6 +581,15 @@ class Table extends BaseTable implements Tableinterface
'store' => NULL,
'tab_name' => 'Message',
],
'source' => [
'name' => 'source',
'label' => 'COM_GETBIBLE_OPEN_AI_MESSAGE_SOURCE_LABEL',
'type' => 'radio',
'title' => false,
'list' => 'open_ai_messages',
'store' => NULL,
'tab_name' => 'Message',
],
'content' => [
'name' => 'content',
'label' => 'COM_GETBIBLE_OPEN_AI_MESSAGE_CONTENT_LABEL',
@ -527,6 +599,15 @@ class Table extends BaseTable implements Tableinterface
'store' => NULL,
'tab_name' => 'Message',
],
'index' => [
'name' => 'index',
'label' => 'COM_GETBIBLE_OPEN_AI_MESSAGE_INDEX_LABEL',
'type' => 'number',
'title' => false,
'list' => 'open_ai_messages',
'store' => NULL,
'tab_name' => 'Message',
],
],
'password' => [
'name' => [