Преглед на файлове

fix: image create prefix

zhayujie преди 2 години
родител
ревизия
4b27de809b
променени са 2 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 1 3
      config-template.json
  2. 1 1
      plugins/linkai/midjourney.py

+ 1 - 3
config-template.json

@@ -20,9 +20,7 @@
     "ChatGPT测试群"
   ],
   "image_create_prefix": [
-    "画",
-    "看",
-    "找"
+    "画"
   ],
   "speech_recognition": false,
   "group_speech_recognition": false,

+ 1 - 1
plugins/linkai/midjourney.py

@@ -48,7 +48,7 @@ task_name_mapping = {
 
 
 class MJTask:
-    def __init__(self, id, user_id: str, task_type: TaskType, raw_prompt=None, expires: int = 60 * 30,
+    def __init__(self, id, user_id: str, task_type: TaskType, raw_prompt=None, expires: int = 60 * 6,
                  status=Status.PENDING):
         self.id = id
         self.user_id = user_id