企业微信智能机器人API插件

This commit is contained in:
2026-09-03 21:29:10 +08:00
parent ec9b7efcd6
commit 418e13a5e3
22 changed files with 1154 additions and 33 deletions
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
import {
Alert,
Avatar,
Button,
Checkbox,
@@ -25,6 +26,8 @@ import {
WECOM_BOT_ROLE_DEFAULT_PERMISSIONS,
WECOM_BOT_ROLE_LABELS,
WECOM_BOT_ROLES,
WECOM_PLUGIN_API_KEY_HEADER,
resolveWecomPluginPublicUrl,
type LlmApiConfigOptionDto,
type KnowledgeBaseOptionDto,
type WecomAibotRuntimeDto,
@@ -403,6 +406,34 @@ export default function WecomBotsPage() {
</Space>
</Space>
<Alert
type="info"
showIcon
style={{ marginBottom: 16 }}
message="企微 API 插件(与上方长连接机器人独立)"
description={
<div>
<div>
URL
<Typography.Text copyable>
{resolveWecomPluginPublicUrl(window.location.hostname)}
</Typography.Text>
</div>
<div>
OpenAPI
<Typography.Text copyable>
{`${resolveWecomPluginPublicUrl(window.location.hostname)}/openapi.json`}
</Typography.Text>
</div>
<Typography.Text type="secondary">
Service token / API keyHeader {WECOM_PLUGIN_API_KEY_HEADER}
.env WECOM_PLUGIN_API_KEY
WECOM_PLUGIN_ENABLED=true
</Typography.Text>
</div>
}
/>
<Form
form={filterForm}
layout="inline"