Skip to content

Commit 6361403

Browse files
committed
cleanup and update npm pkgs
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent fd02990 commit 6361403

File tree

6 files changed

+767
-722
lines changed

6 files changed

+767
-722
lines changed

lib/AppInfo/Application.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@
2626
class Application extends App implements IBootstrap {
2727

2828
public const APP_ID = 'assistant';
29-
public const DEFAULT_ASSISTANT_TASK_IDLE_TIME = 60 * 60 * 24 * 14; // 14 days
30-
31-
public const MAX_STORED_IMAGE_PROMPTS_PER_USER = 5;
32-
public const MAX_STORED_TEXT_PROMPTS_PER_USER = 5;
33-
public const DEFAULT_MAX_IMAGE_GENERATION_IDLE_TIME = 60 * 60 * 24 * 90; // 90 days
34-
public const DEFAULT_TEXT_GENERATION_STORAGE_TIME = 60 * 60 * 24 * 90; // 90 days
35-
public const IMAGE_FOLDER = 'generated_images';
36-
public const SPEECH_TO_TEXT_REC_FOLDER = 'stt_recordings';
29+
3730
public const ASSISTANT_DATA_FOLDER_NAME = 'Assistant';
3831

3932
public const CHAT_USER_INSTRUCTIONS = 'This is a conversation in a specific language between {user} and you, Nextcloud Assistant. You are a kind, polite and helpful AI that helps {user} to the best of its abilities. If you do not understand something, you will ask for clarification. Detect the language that {user} is using. Make sure to use the same language in your response. Do not mention the language explicitly.';

lib/Settings/Admin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public function getForm(): TemplateResponse {
3737

3838
$freePromptPickerEnabled = $this->config->getAppValue(Application::APP_ID, 'free_prompt_picker_enabled', '1') === '1';
3939
$textToImagePickerEnabled = $this->config->getAppValue(Application::APP_ID, 'text_to_image_picker_enabled', '1') === '1';
40-
$maxImageGenerationIdleTime = (int) $this->config->getAppValue(Application::APP_ID, 'max_image_generation_idle_time', (string) Application::DEFAULT_MAX_IMAGE_GENERATION_IDLE_TIME);
4140

4241
$speechToTextEnabled = $this->config->getAppValue(Application::APP_ID, 'speech_to_text_picker_enabled', '1') === '1';
4342
$chattyLLMUserInstructions = $this->config->getAppValue(Application::APP_ID, 'chat_user_instructions', Application::CHAT_USER_INSTRUCTIONS);
@@ -49,7 +48,6 @@ public function getForm(): TemplateResponse {
4948
'assistant_enabled' => $assistantEnabled,
5049
'text_to_image_picker_available' => $textToImageAvailable,
5150
'text_to_image_picker_enabled' => $textToImagePickerEnabled,
52-
'max_image_generation_idle_time' => $maxImageGenerationIdleTime,
5351
'free_prompt_task_type_available' => $freePromptTaskTypeAvailable,
5452
'free_prompt_picker_enabled' => $freePromptPickerEnabled,
5553
'speech_to_text_picker_available' => $speechToTextAvailable,

0 commit comments

Comments
 (0)