Files
WeChatHookBot/plugins/NanoImage/config.toml

39 lines
1.9 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# NanoImage AI绘图插件配置
# 支持 OpenAI 格式的绘图 API
[api]
# API 配置(用户自定义)
base_url = "https://freeapi.dgbmc.top" # API 基础地址
model = "grok-imagine-1.0" # 模型 ID
api_key = "sk-vtr56l4f1VIiTqiT8DDihq11U5Fs92SOS3FTgBKu5WIFjce8" # API 密钥
timeout = 3000 # 请求超时时间(秒)
modalities = ["image", "text"] # 返回图像所需的模态配置
stream = false # 该接口不支持流式返回图像
[generation]
max_retry_attempts = 3 # 最大重试次数
simplify_prompt_on_fail = true # 失败时简化提示词重试
simplify_max_tags = 8 # 简化时保留的标签数量
simplify_max_chars = 140 # 非标签提示词的最大长度
[edits]
enabled = true # ???? /v1/images/edits ????
endpoint = "/v1/images/edits" # ??????
size = "" # ???? 1024x1024??????
response_format = "" # ???? url ? b64_json??????
n = 1 # ????????
max_retry_attempts = 2 # ????????
allow_json_fallback = true # multipart ????? JSON ??
fallback_to_generation = false # ????????????
[behavior]
enable_command = true # 是否启用命令触发
command_keywords = ["/nano绘图", "/nano画图", "/nanoimg"] # 命令关键词
enable_group = true # 是否在群聊中启用
enable_private = true # 是否在私聊中启用
[llm_tool]
enabled = true # 是否启用 LLM 工具调用
tool_name = "nano_ai_image_generation" # 工具名称
tool_description = "AI图像生成工具。当用户请求生成图片、画图、发张图、自拍、自画像、看看XX想看某个画面、来一张、发一张时调用此工具。" # 工具描述