mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 13:47:15 +08:00
docs: adjust docs order
This commit is contained in:
@@ -201,12 +201,23 @@ class CloudClient(LinkAIClient):
|
|||||||
|
|
||||||
def _handle_channel_create(self, channel_type: str, data: dict):
|
def _handle_channel_create(self, channel_type: str, data: dict):
|
||||||
local_config = conf()
|
local_config = conf()
|
||||||
self._set_channel_credentials(local_config, channel_type,
|
cred_changed = self._set_channel_credentials(
|
||||||
data.get("appId"), data.get("appSecret"))
|
local_config, channel_type, data.get("appId"), data.get("appSecret"))
|
||||||
self._add_channel_type(local_config, channel_type)
|
self._add_channel_type(local_config, channel_type)
|
||||||
self._save_config_to_file(local_config)
|
self._save_config_to_file(local_config)
|
||||||
|
|
||||||
if self.channel_mgr:
|
if not self.channel_mgr:
|
||||||
|
return
|
||||||
|
|
||||||
|
existing_ch = self.channel_mgr.get_channel(channel_type)
|
||||||
|
if existing_ch and not cred_changed:
|
||||||
|
logger.info(f"[CloudClient] Channel '{channel_type}' already running with same config, "
|
||||||
|
"skip restart, reporting status only")
|
||||||
|
threading.Thread(
|
||||||
|
target=self._report_channel_startup, args=(channel_type,), daemon=True
|
||||||
|
).start()
|
||||||
|
return
|
||||||
|
|
||||||
threading.Thread(
|
threading.Thread(
|
||||||
target=self._do_add_channel, args=(channel_type,), daemon=True
|
target=self._do_add_channel, args=(channel_type,), daemon=True
|
||||||
).start()
|
).start()
|
||||||
@@ -215,13 +226,11 @@ class CloudClient(LinkAIClient):
|
|||||||
local_config = conf()
|
local_config = conf()
|
||||||
enabled = data.get("enabled", "Y")
|
enabled = data.get("enabled", "Y")
|
||||||
|
|
||||||
self._set_channel_credentials(local_config, channel_type,
|
cred_changed = self._set_channel_credentials(
|
||||||
data.get("appId"), data.get("appSecret"))
|
local_config, channel_type, data.get("appId"), data.get("appSecret"))
|
||||||
if enabled == "N":
|
if enabled == "N":
|
||||||
self._remove_channel_type(local_config, channel_type)
|
self._remove_channel_type(local_config, channel_type)
|
||||||
else:
|
else:
|
||||||
# Ensure channel_type is persisted even if this channel was not
|
|
||||||
# previously listed (e.g. update used as implicit create).
|
|
||||||
self._add_channel_type(local_config, channel_type)
|
self._add_channel_type(local_config, channel_type)
|
||||||
self._save_config_to_file(local_config)
|
self._save_config_to_file(local_config)
|
||||||
|
|
||||||
@@ -232,6 +241,14 @@ class CloudClient(LinkAIClient):
|
|||||||
threading.Thread(
|
threading.Thread(
|
||||||
target=self._do_remove_channel, args=(channel_type,), daemon=True
|
target=self._do_remove_channel, args=(channel_type,), daemon=True
|
||||||
).start()
|
).start()
|
||||||
|
else:
|
||||||
|
existing_ch = self.channel_mgr.get_channel(channel_type)
|
||||||
|
if existing_ch and not cred_changed:
|
||||||
|
logger.info(f"[CloudClient] Channel '{channel_type}' already running with same config, "
|
||||||
|
"skip restart, reporting status only")
|
||||||
|
threading.Thread(
|
||||||
|
target=self._report_channel_startup, args=(channel_type,), daemon=True
|
||||||
|
).start()
|
||||||
else:
|
else:
|
||||||
threading.Thread(
|
threading.Thread(
|
||||||
target=self._do_restart_channel, args=(self.channel_mgr, channel_type), daemon=True
|
target=self._do_restart_channel, args=(self.channel_mgr, channel_type), daemon=True
|
||||||
|
|||||||
290
docs/docs.json
290
docs/docs.json
@@ -183,6 +183,151 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"language": "en",
|
||||||
|
"tabs": [
|
||||||
|
{
|
||||||
|
"tab": "Introduction",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Overview",
|
||||||
|
"pages": [
|
||||||
|
"en/intro/index",
|
||||||
|
"en/intro/architecture",
|
||||||
|
"en/intro/features"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tab": "Get Started",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Installation",
|
||||||
|
"pages": [
|
||||||
|
"en/guide/quick-start",
|
||||||
|
"en/guide/manual-install"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tab": "Models",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Model Configuration",
|
||||||
|
"pages": [
|
||||||
|
"en/models/index",
|
||||||
|
"en/models/minimax",
|
||||||
|
"en/models/glm",
|
||||||
|
"en/models/qwen",
|
||||||
|
"en/models/kimi",
|
||||||
|
"en/models/doubao",
|
||||||
|
"en/models/claude",
|
||||||
|
"en/models/gemini",
|
||||||
|
"en/models/openai",
|
||||||
|
"en/models/deepseek",
|
||||||
|
"en/models/linkai",
|
||||||
|
"en/models/coding-plan"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tab": "Tools",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Tools System",
|
||||||
|
"pages": [
|
||||||
|
"en/tools/index"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group": "Built-in Tools",
|
||||||
|
"pages": [
|
||||||
|
"en/tools/read",
|
||||||
|
"en/tools/write",
|
||||||
|
"en/tools/edit",
|
||||||
|
"en/tools/ls",
|
||||||
|
"en/tools/bash",
|
||||||
|
"en/tools/send",
|
||||||
|
"en/tools/memory",
|
||||||
|
"en/tools/env-config"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group": "Optional Tools",
|
||||||
|
"pages": [
|
||||||
|
"en/tools/web-search",
|
||||||
|
"en/tools/scheduler"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tab": "Skills",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Skills System",
|
||||||
|
"pages": [
|
||||||
|
"en/skills/index",
|
||||||
|
"en/skills/skill-creator"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"group": "Built-in Skills",
|
||||||
|
"pages": [
|
||||||
|
"en/skills/image-vision",
|
||||||
|
"en/skills/linkai-agent",
|
||||||
|
"en/skills/web-fetch"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tab": "Memory",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Memory System",
|
||||||
|
"pages": [
|
||||||
|
"en/memory"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tab": "Channels",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Platforms",
|
||||||
|
"pages": [
|
||||||
|
"en/channels/web",
|
||||||
|
"en/channels/feishu",
|
||||||
|
"en/channels/dingtalk",
|
||||||
|
"en/channels/wecom-bot",
|
||||||
|
"en/channels/qq",
|
||||||
|
"en/channels/wecom",
|
||||||
|
"en/channels/wechatmp"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"tab": "Releases",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"group": "Release Notes",
|
||||||
|
"pages": [
|
||||||
|
"en/releases/overview",
|
||||||
|
"en/releases/v2.0.2",
|
||||||
|
"en/releases/v2.0.1",
|
||||||
|
"en/releases/v2.0.0"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"language": "ja",
|
"language": "ja",
|
||||||
"tabs": [
|
"tabs": [
|
||||||
@@ -330,151 +475,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"language": "en",
|
|
||||||
"tabs": [
|
|
||||||
{
|
|
||||||
"tab": "Introduction",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Overview",
|
|
||||||
"pages": [
|
|
||||||
"en/intro/index",
|
|
||||||
"en/intro/architecture",
|
|
||||||
"en/intro/features"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "Get Started",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Installation",
|
|
||||||
"pages": [
|
|
||||||
"en/guide/quick-start",
|
|
||||||
"en/guide/manual-install"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "Models",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Model Configuration",
|
|
||||||
"pages": [
|
|
||||||
"en/models/index",
|
|
||||||
"en/models/minimax",
|
|
||||||
"en/models/glm",
|
|
||||||
"en/models/qwen",
|
|
||||||
"en/models/kimi",
|
|
||||||
"en/models/doubao",
|
|
||||||
"en/models/claude",
|
|
||||||
"en/models/gemini",
|
|
||||||
"en/models/openai",
|
|
||||||
"en/models/deepseek",
|
|
||||||
"en/models/linkai",
|
|
||||||
"en/models/coding-plan"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "Tools",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Tools System",
|
|
||||||
"pages": [
|
|
||||||
"en/tools/index"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group": "Built-in Tools",
|
|
||||||
"pages": [
|
|
||||||
"en/tools/read",
|
|
||||||
"en/tools/write",
|
|
||||||
"en/tools/edit",
|
|
||||||
"en/tools/ls",
|
|
||||||
"en/tools/bash",
|
|
||||||
"en/tools/send",
|
|
||||||
"en/tools/memory",
|
|
||||||
"en/tools/env-config"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group": "Optional Tools",
|
|
||||||
"pages": [
|
|
||||||
"en/tools/web-search",
|
|
||||||
"en/tools/scheduler"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "Skills",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Skills System",
|
|
||||||
"pages": [
|
|
||||||
"en/skills/index",
|
|
||||||
"en/skills/skill-creator"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"group": "Built-in Skills",
|
|
||||||
"pages": [
|
|
||||||
"en/skills/image-vision",
|
|
||||||
"en/skills/linkai-agent",
|
|
||||||
"en/skills/web-fetch"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "Memory",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Memory System",
|
|
||||||
"pages": [
|
|
||||||
"en/memory"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "Channels",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Platforms",
|
|
||||||
"pages": [
|
|
||||||
"en/channels/web",
|
|
||||||
"en/channels/feishu",
|
|
||||||
"en/channels/dingtalk",
|
|
||||||
"en/channels/wecom-bot",
|
|
||||||
"en/channels/qq",
|
|
||||||
"en/channels/wecom",
|
|
||||||
"en/channels/wechatmp"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tab": "Releases",
|
|
||||||
"groups": [
|
|
||||||
{
|
|
||||||
"group": "Release Notes",
|
|
||||||
"pages": [
|
|
||||||
"en/releases/overview",
|
|
||||||
"en/releases/v2.0.2",
|
|
||||||
"en/releases/v2.0.1",
|
|
||||||
"en/releases/v2.0.0"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user