Browse Source

fix: image model check

master
zhayujie 6 months ago
parent
commit
fa3370df5b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      common/linkai_client.py

+ 3
- 0
common/linkai_client.py View File

@@ -60,6 +60,9 @@ class ChatClient(LinkAIClient):
if pconf("linkai")["midjourney"]: if pconf("linkai")["midjourney"]:
pconf("linkai")["midjourney"]["enabled"] = True pconf("linkai")["midjourney"]["enabled"] = True
pconf("linkai")["midjourney"]["use_image_create_prefix"] = True pconf("linkai")["midjourney"]["use_image_create_prefix"] = True
elif config.get("text_to_image") and config.get("text_to_image") in ["dall-e-2", "dall-e-3"]:
if pconf("linkai")["midjourney"]:
pconf("linkai")["midjourney"]["use_image_create_prefix"] = False




def start(channel): def start(channel):


Loading…
Cancel
Save