瀏覽代碼

fix: image model check

develop
zhayujie 6 月之前
父節點
當前提交
fa3370df5b
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      common/linkai_client.py

+ 3
- 0
common/linkai_client.py 查看文件

@@ -60,6 +60,9 @@ class ChatClient(LinkAIClient):
if pconf("linkai")["midjourney"]:
pconf("linkai")["midjourney"]["enabled"] = 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):


Loading…
取消
儲存