chore: change zh_CN to zh_Hans

This commit is contained in:
Junyan Qin
2025-05-14 16:44:48 +08:00
parent 6652b57a0d
commit c835555a59
42 changed files with 247 additions and 247 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ metadata:
name: builtin-components name: builtin-components
label: label:
en_US: Builtin Components en_US: Builtin Components
zh_CN: 内置组件 zh_Hans: 内置组件
spec: spec:
components: components:
ComponentTemplate: ComponentTemplate:
+3 -3
View File
@@ -15,7 +15,7 @@ class I18nString(pydantic.BaseModel):
en_US: str en_US: str
"""英文""" """英文"""
zh_CN: typing.Optional[str] = None zh_Hans: typing.Optional[str] = None
"""中文""" """中文"""
ja_JP: typing.Optional[str] = None ja_JP: typing.Optional[str] = None
@@ -26,8 +26,8 @@ class I18nString(pydantic.BaseModel):
dic = {} dic = {}
if self.en_US is not None: if self.en_US is not None:
dic['en_US'] = self.en_US dic['en_US'] = self.en_US
if self.zh_CN is not None: if self.zh_Hans is not None:
dic['zh_CN'] = self.zh_CN dic['zh_Hans'] = self.zh_Hans
if self.ja_JP is not None: if self.ja_JP is not None:
dic['ja_JP'] = self.ja_JP dic['ja_JP'] = self.ja_JP
return dic return dic
+1 -1
View File
@@ -4,7 +4,7 @@ metadata:
name: MessagePlatformAdapter name: MessagePlatformAdapter
label: label:
en_US: Message Platform Adapter en_US: Message Platform Adapter
zh_CN: 消息平台适配器模板类 zh_Hans: 消息平台适配器模板类
spec: spec:
type: type:
- python - python
+8 -8
View File
@@ -4,40 +4,40 @@ metadata:
name: aiocqhttp name: aiocqhttp
label: label:
en_US: OneBot v11 en_US: OneBot v11
zh_CN: OneBot v11 zh_Hans: OneBot v11
description: description:
en_US: OneBot v11 Adapter en_US: OneBot v11 Adapter
zh_CN: OneBot v11 适配器,请查看文档了解使用方式 zh_Hans: OneBot v11 适配器,请查看文档了解使用方式
icon: onebot.png icon: onebot.png
spec: spec:
config: config:
- name: host - name: host
label: label:
en_US: Host en_US: Host
zh_CN: 主机 zh_Hans: 主机
description: description:
en_US: The host that OneBot v11 listens on for reverse WebSocket connections. Unless you know what you're doing, use 0.0.0.0 en_US: The host that OneBot v11 listens on for reverse WebSocket connections. Unless you know what you're doing, use 0.0.0.0
zh_CN: OneBot v11 监听的反向 WS 主机,除非你知道自己在做什么,否则请写 0.0.0.0 zh_Hans: OneBot v11 监听的反向 WS 主机,除非你知道自己在做什么,否则请写 0.0.0.0
type: string type: string
required: true required: true
default: 0.0.0.0 default: 0.0.0.0
- name: port - name: port
label: label:
en_US: Port en_US: Port
zh_CN: 端口 zh_Hans: 端口
description: description:
en_US: Port en_US: Port
zh_CN: 监听的端口 zh_Hans: 监听的端口
type: integer type: integer
required: true required: true
default: 2280 default: 2280
- name: access-token - name: access-token
label: label:
en_US: Access Token en_US: Access Token
zh_CN: 访问令牌 zh_Hans: 访问令牌
description: description:
en_US: Custom connection token for the protocol endpoint. If the protocol endpoint is not set, don't fill it en_US: Custom connection token for the protocol endpoint. If the protocol endpoint is not set, don't fill it
zh_CN: 自定义的与协议端的连接令牌,若协议端未设置,则不填 zh_Hans: 自定义的与协议端的连接令牌,若协议端未设置,则不填
type: string type: string
required: false required: false
default: "" default: ""
+7 -7
View File
@@ -4,45 +4,45 @@ metadata:
name: dingtalk name: dingtalk
label: label:
en_US: DingTalk en_US: DingTalk
zh_CN: 钉钉 zh_Hans: 钉钉
description: description:
en_US: DingTalk Adapter en_US: DingTalk Adapter
zh_CN: 钉钉适配器,请查看文档了解使用方式 zh_Hans: 钉钉适配器,请查看文档了解使用方式
icon: dingtalk.svg icon: dingtalk.svg
spec: spec:
config: config:
- name: client_id - name: client_id
label: label:
en_US: Client ID en_US: Client ID
zh_CN: 客户端ID zh_Hans: 客户端ID
type: string type: string
required: true required: true
default: "" default: ""
- name: client_secret - name: client_secret
label: label:
en_US: Client Secret en_US: Client Secret
zh_CN: 客户端密钥 zh_Hans: 客户端密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: robot_code - name: robot_code
label: label:
en_US: Robot Code en_US: Robot Code
zh_CN: 机器人代码 zh_Hans: 机器人代码
type: string type: string
required: true required: true
default: "" default: ""
- name: robot_name - name: robot_name
label: label:
en_US: Robot Name en_US: Robot Name
zh_CN: 机器人名称 zh_Hans: 机器人名称
type: string type: string
required: true required: true
default: "" default: ""
- name: markdown_card - name: markdown_card
label: label:
en_US: Markdown Card en_US: Markdown Card
zh_CN: 是否使用 Markdown 卡片 zh_Hans: 是否使用 Markdown 卡片
type: boolean type: boolean
required: false required: false
default: true default: true
+4 -4
View File
@@ -4,24 +4,24 @@ metadata:
name: discord name: discord
label: label:
en_US: Discord en_US: Discord
zh_CN: Discord zh_Hans: Discord
description: description:
en_US: Discord Adapter en_US: Discord Adapter
zh_CN: Discord 适配器,请查看文档了解使用方式 zh_Hans: Discord 适配器,请查看文档了解使用方式
icon: discord.svg icon: discord.svg
spec: spec:
config: config:
- name: client_id - name: client_id
label: label:
en_US: Client ID en_US: Client ID
zh_CN: 客户端ID zh_Hans: 客户端ID
type: string type: string
required: true required: true
default: "" default: ""
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
+8 -8
View File
@@ -4,52 +4,52 @@ metadata:
name: gewechat name: gewechat
label: label:
en_US: GeWeChat en_US: GeWeChat
zh_CN: GeWeChat(个人微信) zh_Hans: GeWeChat(个人微信)
description: description:
en_US: GeWeChat Adapter en_US: GeWeChat Adapter
zh_CN: GeWeChat 适配器,请查看文档了解使用方式 zh_Hans: GeWeChat 适配器,请查看文档了解使用方式
icon: gewechat.png icon: gewechat.png
spec: spec:
config: config:
- name: gewechat_url - name: gewechat_url
label: label:
en_US: GeWeChat URL en_US: GeWeChat URL
zh_CN: GeWeChat URL zh_Hans: GeWeChat URL
type: string type: string
required: true required: true
default: "" default: ""
- name: gewechat_file_url - name: gewechat_file_url
label: label:
en_US: GeWeChat file download URL en_US: GeWeChat file download URL
zh_CN: GeWeChat 文件下载URL zh_Hans: GeWeChat 文件下载URL
type: string type: string
required: true required: true
default: "" default: ""
- name: port - name: port
label: label:
en_US: Port en_US: Port
zh_CN: 端口 zh_Hans: 端口
type: integer type: integer
required: true required: true
default: 2286 default: 2286
- name: callback_url - name: callback_url
label: label:
en_US: Callback URL en_US: Callback URL
zh_CN: 回调URL zh_Hans: 回调URL
type: string type: string
required: true required: true
default: "" default: ""
- name: app_id - name: app_id
label: label:
en_US: App ID en_US: App ID
zh_CN: 应用ID zh_Hans: 应用ID
type: string type: string
required: true required: true
default: "" default: ""
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
+1 -1
View File
@@ -417,7 +417,7 @@ class LarkAdapter(adapter.MessagePlatformAdapter):
lark_message = await self.message_converter.yiri2target(message, self.api_client) lark_message = await self.message_converter.yiri2target(message, self.api_client)
final_content = { final_content = {
'zh_cn': { 'zh_Hans': {
'title': '', 'title': '',
'content': lark_message, 'content': lark_message,
}, },
+11 -11
View File
@@ -4,61 +4,61 @@ metadata:
name: lark name: lark
label: label:
en_US: Lark en_US: Lark
zh_CN: 飞书 zh_Hans: 飞书
description: description:
en_US: Lark Adapter en_US: Lark Adapter
zh_CN: 飞书适配器,请查看文档了解使用方式 zh_Hans: 飞书适配器,请查看文档了解使用方式
icon: lark.svg icon: lark.svg
spec: spec:
config: config:
- name: app_id - name: app_id
label: label:
en_US: App ID en_US: App ID
zh_CN: 应用ID zh_Hans: 应用ID
type: string type: string
required: true required: true
default: "" default: ""
- name: app_secret - name: app_secret
label: label:
en_US: App Secret en_US: App Secret
zh_CN: 应用密钥 zh_Hans: 应用密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: bot_name - name: bot_name
label: label:
en_US: Bot Name en_US: Bot Name
zh_CN: 机器人名称 zh_Hans: 机器人名称
type: string type: string
required: true required: true
default: "" default: ""
- name: enable-webhook - name: enable-webhook
label: label:
en_US: Enable Webhook Mode en_US: Enable Webhook Mode
zh_CN: 启用Webhook模式 zh_Hans: 启用Webhook模式
description: description:
en_US: If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode en_US: If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode
zh_CN: 如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式 zh_Hans: 如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式
type: boolean type: boolean
required: true required: true
default: false default: false
- name: port - name: port
label: label:
en_US: Webhook Port en_US: Webhook Port
zh_CN: Webhook端口 zh_Hans: Webhook端口
description: description:
en_US: Only valid when webhook mode is enabled, please fill in the webhook port en_US: Only valid when webhook mode is enabled, please fill in the webhook port
zh_CN: 仅在启用 Webhook 模式时有效,请填写 Webhook 端口 zh_Hans: 仅在启用 Webhook 模式时有效,请填写 Webhook 端口
type: integer type: integer
required: true required: true
default: 2285 default: 2285
- name: encrypt-key - name: encrypt-key
label: label:
en_US: Encrypt Key en_US: Encrypt Key
zh_CN: 加密密钥 zh_Hans: 加密密钥
description: description:
en_US: Only valid when webhook mode is enabled, please fill in the encrypt key en_US: Only valid when webhook mode is enabled, please fill in the encrypt key
zh_CN: 仅在启用 Webhook 模式时有效,请填写加密密钥 zh_Hans: 仅在启用 Webhook 模式时有效,请填写加密密钥
type: string type: string
required: true required: true
default: "" default: ""
+6 -6
View File
@@ -4,38 +4,38 @@ metadata:
name: nakuru name: nakuru
label: label:
en_US: Nakuru en_US: Nakuru
zh_CN: Nakuru zh_Hans: Nakuru
description: description:
en_US: Nakuru Adapter en_US: Nakuru Adapter
zh_CN: Nakuru 适配器(go-cqhttp),请查看文档了解使用方式 zh_Hans: Nakuru 适配器(go-cqhttp),请查看文档了解使用方式
icon: nakuru.png icon: nakuru.png
spec: spec:
config: config:
- name: host - name: host
label: label:
en_US: Host en_US: Host
zh_CN: 主机 zh_Hans: 主机
type: string type: string
required: true required: true
default: "127.0.0.1" default: "127.0.0.1"
- name: http_port - name: http_port
label: label:
en_US: HTTP Port en_US: HTTP Port
zh_CN: HTTP端口 zh_Hans: HTTP端口
type: integer type: integer
required: true required: true
default: 5700 default: 5700
- name: ws_port - name: ws_port
label: label:
en_US: WebSocket Port en_US: WebSocket Port
zh_CN: WebSocket端口 zh_Hans: WebSocket端口
type: integer type: integer
required: true required: true
default: 8080 default: 8080
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
+10 -10
View File
@@ -4,66 +4,66 @@ metadata:
name: officialaccount name: officialaccount
label: label:
en_US: Official Account en_US: Official Account
zh_CN: 微信公众号 zh_Hans: 微信公众号
description: description:
en_US: Official Account Adapter en_US: Official Account Adapter
zh_CN: 微信公众号适配器,请查看文档了解使用方式 zh_Hans: 微信公众号适配器,请查看文档了解使用方式
icon: officialaccount.png icon: officialaccount.png
spec: spec:
config: config:
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
- name: EncodingAESKey - name: EncodingAESKey
label: label:
en_US: EncodingAESKey en_US: EncodingAESKey
zh_CN: 消息加解密密钥 zh_Hans: 消息加解密密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: AppID - name: AppID
label: label:
en_US: App ID en_US: App ID
zh_CN: 应用ID zh_Hans: 应用ID
type: string type: string
required: true required: true
default: "" default: ""
- name: AppSecret - name: AppSecret
label: label:
en_US: App Secret en_US: App Secret
zh_CN: 应用密钥 zh_Hans: 应用密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: Mode - name: Mode
label: label:
en_US: Mode en_US: Mode
zh_CN: 接入模式 zh_Hans: 接入模式
type: string type: string
required: true required: true
default: "drop" default: "drop"
- name: LoadingMessage - name: LoadingMessage
label: label:
en_US: Loading Message en_US: Loading Message
zh_CN: 加载消息 zh_Hans: 加载消息
type: string type: string
required: true required: true
default: "AI正在思考中,请发送任意内容获取回复。" default: "AI正在思考中,请发送任意内容获取回复。"
- name: host - name: host
label: label:
en_US: Host en_US: Host
zh_CN: 监听主机 zh_Hans: 监听主机
type: string type: string
required: true required: true
default: 0.0.0.0 default: 0.0.0.0
- name: port - name: port
label: label:
en_US: Port en_US: Port
zh_CN: 监听端口 zh_Hans: 监听端口
type: integer type: integer
required: true required: true
default: 2287 default: 2287
+5 -5
View File
@@ -4,31 +4,31 @@ metadata:
name: qq-botpy name: qq-botpy
label: label:
en_US: QQBotPy en_US: QQBotPy
zh_CN: QQBotPy zh_Hans: QQBotPy
description: description:
en_US: QQ Official API (WebSocket) en_US: QQ Official API (WebSocket)
zh_CN: QQ 官方 API (WebSocket),请查看文档了解使用方式 zh_Hans: QQ 官方 API (WebSocket),请查看文档了解使用方式
icon: qqbotpy.svg icon: qqbotpy.svg
spec: spec:
config: config:
- name: appid - name: appid
label: label:
en_US: App ID en_US: App ID
zh_CN: 应用ID zh_Hans: 应用ID
type: string type: string
required: true required: true
default: "" default: ""
- name: secret - name: secret
label: label:
en_US: Secret en_US: Secret
zh_CN: 密钥 zh_Hans: 密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: intents - name: intents
label: label:
en_US: Intents en_US: Intents
zh_CN: 权限 zh_Hans: 权限
type: array type: array
required: true required: true
default: [] default: []
+6 -6
View File
@@ -4,38 +4,38 @@ metadata:
name: qqofficial name: qqofficial
label: label:
en_US: QQ Official API en_US: QQ Official API
zh_CN: QQ 官方 API zh_Hans: QQ 官方 API
description: description:
en_US: QQ Official API (Webhook) en_US: QQ Official API (Webhook)
zh_CN: QQ 官方 API (Webhook),请查看文档了解使用方式 zh_Hans: QQ 官方 API (Webhook),请查看文档了解使用方式
icon: qqofficial.svg icon: qqofficial.svg
spec: spec:
config: config:
- name: appid - name: appid
label: label:
en_US: App ID en_US: App ID
zh_CN: 应用ID zh_Hans: 应用ID
type: string type: string
required: true required: true
default: "" default: ""
- name: secret - name: secret
label: label:
en_US: Secret en_US: Secret
zh_CN: 密钥 zh_Hans: 密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: port - name: port
label: label:
en_US: Port en_US: Port
zh_CN: 监听端口 zh_Hans: 监听端口
type: integer type: integer
required: true required: true
default: 2284 default: 2284
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
+5 -5
View File
@@ -4,31 +4,31 @@ metadata:
name: slack name: slack
label: label:
en_US: Slack en_US: Slack
zh_CN: Slack zh_Hans: Slack
description: description:
en_US: Slack Adapter en_US: Slack Adapter
zh_CN: Slack 适配器,请查看文档了解使用方式 zh_Hans: Slack 适配器,请查看文档了解使用方式
icon: slack.png icon: slack.png
spec: spec:
config: config:
- name: bot_token - name: bot_token
label: label:
en_US: Bot Token en_US: Bot Token
zh_CN: 机器人令牌 zh_Hans: 机器人令牌
type: string type: string
required: true required: true
default: "" default: ""
- name: signing_secret - name: signing_secret
label: label:
en_US: signing_secret en_US: signing_secret
zh_CN: 密钥 zh_Hans: 密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: port - name: port
label: label:
en_US: Port en_US: Port
zh_CN: 监听端口 zh_Hans: 监听端口
type: int type: int
required: true required: true
default: 2288 default: 2288
+4 -4
View File
@@ -4,24 +4,24 @@ metadata:
name: telegram name: telegram
label: label:
en_US: Telegram en_US: Telegram
zh_CN: 电报 zh_Hans: 电报
description: description:
en_US: Telegram Adapter en_US: Telegram Adapter
zh_CN: 电报适配器,请查看文档了解使用方式 zh_Hans: 电报适配器,请查看文档了解使用方式
icon: telegram.svg icon: telegram.svg
spec: spec:
config: config:
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
- name: markdown_card - name: markdown_card
label: label:
en_US: Markdown Card en_US: Markdown Card
zh_CN: 是否使用 Markdown 卡片 zh_Hans: 是否使用 Markdown 卡片
type: boolean type: boolean
required: false required: false
default: true default: true
+10 -10
View File
@@ -4,62 +4,62 @@ metadata:
name: wecom name: wecom
label: label:
en_US: WeCom en_US: WeCom
zh_CN: 企业微信 zh_Hans: 企业微信
description: description:
en_US: WeCom Adapter en_US: WeCom Adapter
zh_CN: 企业微信适配器,请查看文档了解使用方式 zh_Hans: 企业微信适配器,请查看文档了解使用方式
icon: wecom.png icon: wecom.png
spec: spec:
config: config:
- name: host - name: host
label: label:
en_US: Host en_US: Host
zh_CN: 监听主机 zh_Hans: 监听主机
description: description:
en_US: Webhook host, unless you know what you're doing, please write 0.0.0.0 en_US: Webhook host, unless you know what you're doing, please write 0.0.0.0
zh_CN: Webhook 监听主机,除非你知道自己在做什么,否则请写 0.0.0.0 zh_Hans: Webhook 监听主机,除非你知道自己在做什么,否则请写 0.0.0.0
type: string type: string
required: true required: true
default: "0.0.0.0" default: "0.0.0.0"
- name: port - name: port
label: label:
en_US: Port en_US: Port
zh_CN: 监听端口 zh_Hans: 监听端口
type: integer type: integer
required: true required: true
default: 2290 default: 2290
- name: corpid - name: corpid
label: label:
en_US: Corpid en_US: Corpid
zh_CN: 企业ID zh_Hans: 企业ID
type: string type: string
required: true required: true
default: "" default: ""
- name: secret - name: secret
label: label:
en_US: Secret en_US: Secret
zh_CN: 密钥 zh_Hans: 密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
- name: EncodingAESKey - name: EncodingAESKey
label: label:
en_US: EncodingAESKey en_US: EncodingAESKey
zh_CN: 消息加解密密钥 zh_Hans: 消息加解密密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: contacts_secret - name: contacts_secret
label: label:
en_US: Contacts Secret en_US: Contacts Secret
zh_CN: 通讯录密钥 zh_Hans: 通讯录密钥
type: string type: string
required: true required: true
default: "" default: ""
+7 -7
View File
@@ -4,45 +4,45 @@ metadata:
name: wecomcs name: wecomcs
label: label:
en_US: WeComCustomerService en_US: WeComCustomerService
zh_CN: 企业微信客服 zh_Hans: 企业微信客服
description: description:
en_US: WeComCSAdapter en_US: WeComCSAdapter
zh_CN: 企业微信客服适配器 zh_Hans: 企业微信客服适配器
icon: wecom.png icon: wecom.png
spec: spec:
config: config:
- name: port - name: port
label: label:
en_US: Port en_US: Port
zh_CN: 监听端口 zh_Hans: 监听端口
type: int type: int
required: true required: true
default: 2289 default: 2289
- name: corpid - name: corpid
label: label:
en_US: Corpid en_US: Corpid
zh_CN: 企业ID zh_Hans: 企业ID
type: string type: string
required: true required: true
default: "" default: ""
- name: secret - name: secret
label: label:
en_US: Secret en_US: Secret
zh_CN: 密钥 zh_Hans: 密钥
type: string type: string
required: true required: true
default: "" default: ""
- name: token - name: token
label: label:
en_US: Token en_US: Token
zh_CN: 令牌 zh_Hans: 令牌
type: string type: string
required: true required: true
default: "" default: ""
- name: EncodingAESKey - name: EncodingAESKey
label: label:
en_US: EncodingAESKey en_US: EncodingAESKey
zh_CN: 消息加解密密钥 zh_Hans: 消息加解密密钥
type: string type: string
required: true required: true
default: "" default: ""
+2 -2
View File
@@ -39,8 +39,8 @@ class PluginLoader(loader.PluginLoader):
self.ap.logger.debug(f'注册插件 {name} {version} by {author}') self.ap.logger.debug(f'注册插件 {name} {version} by {author}')
container = context.RuntimeContainer( container = context.RuntimeContainer(
plugin_name=name, plugin_name=name,
plugin_label=discover_engine.I18nString(en_US=name, zh_CN=name), plugin_label=discover_engine.I18nString(en_US=name, zh_Hans=name),
plugin_description=discover_engine.I18nString(en_US=description, zh_CN=description), plugin_description=discover_engine.I18nString(en_US=description, zh_Hans=description),
plugin_version=version, plugin_version=version,
plugin_author=author, plugin_author=author,
plugin_repository='', plugin_repository='',
+1 -1
View File
@@ -4,7 +4,7 @@ metadata:
name: LLMAPIRequester name: LLMAPIRequester
label: label:
en_US: LLM API Requester en_US: LLM API Requester
zh_CN: LLM API 请求器 zh_Hans: LLM API 请求器
spec: spec:
type: type:
- python - python
@@ -4,21 +4,21 @@ metadata:
name: anthropic-messages name: anthropic-messages
label: label:
en_US: Anthropic en_US: Anthropic
zh_CN: Anthropic zh_Hans: Anthropic
icon: anthropic.svg icon: anthropic.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api.anthropic.com/v1" default: "https://api.anthropic.com/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: bailian-chat-completions name: bailian-chat-completions
label: label:
en_US: Aliyun Bailian en_US: Aliyun Bailian
zh_CN: 阿里云百炼 zh_Hans: 阿里云百炼
icon: bailian.png icon: bailian.png
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://dashscope.aliyuncs.com/compatible-mode/v1" default: "https://dashscope.aliyuncs.com/compatible-mode/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: openai-chat-completions name: openai-chat-completions
label: label:
en_US: OpenAI en_US: OpenAI
zh_CN: OpenAI zh_Hans: OpenAI
icon: openai.svg icon: openai.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api.openai.com/v1" default: "https://api.openai.com/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: deepseek-chat-completions name: deepseek-chat-completions
label: label:
en_US: DeepSeek en_US: DeepSeek
zh_CN: 深度求索 zh_Hans: 深度求索
icon: deepseek.svg icon: deepseek.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api.deepseek.com" default: "https://api.deepseek.com"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: gemini-chat-completions name: gemini-chat-completions
label: label:
en_US: Google Gemini en_US: Google Gemini
zh_CN: Google Gemini zh_Hans: Google Gemini
icon: gemini.svg icon: gemini.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://generativelanguage.googleapis.com" default: "https://generativelanguage.googleapis.com"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: gitee-ai-chat-completions name: gitee-ai-chat-completions
label: label:
en_US: Gitee AI en_US: Gitee AI
zh_CN: Gitee AI zh_Hans: Gitee AI
icon: giteeai.svg icon: giteeai.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://ai.gitee.com/v1" default: "https://ai.gitee.com/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: lmstudio-chat-completions name: lmstudio-chat-completions
label: label:
en_US: LM Studio en_US: LM Studio
zh_CN: LM Studio zh_Hans: LM Studio
icon: lmstudio.webp icon: lmstudio.webp
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "http://127.0.0.1:1234/v1" default: "http://127.0.0.1:1234/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,28 +4,28 @@ metadata:
name: modelscope-chat-completions name: modelscope-chat-completions
label: label:
en_US: ModelScope en_US: ModelScope
zh_CN: 魔搭社区 zh_Hans: 魔搭社区
icon: modelscope.svg icon: modelscope.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api-inference.modelscope.cn/v1" default: "https://api-inference.modelscope.cn/v1"
- name: args - name: args
label: label:
en_US: Args en_US: Args
zh_CN: 附加参数 zh_Hans: 附加参数
type: object type: object
required: true required: true
default: {} default: {}
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: int type: int
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: moonshot-chat-completions name: moonshot-chat-completions
label: label:
en_US: Moonshot en_US: Moonshot
zh_CN: 月之暗面 zh_Hans: 月之暗面
icon: moonshot.png icon: moonshot.png
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api.moonshot.com/v1" default: "https://api.moonshot.com/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: ollama-chat name: ollama-chat
label: label:
en_US: Ollama en_US: Ollama
zh_CN: Ollama zh_Hans: Ollama
icon: ollama.svg icon: ollama.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "http://127.0.0.1:11434" default: "http://127.0.0.1:11434"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,27 +4,27 @@ metadata:
name: ppio-chat-completions name: ppio-chat-completions
label: label:
en_US: ppio en_US: ppio
zh_CN: 派欧云 zh_Hans: 派欧云
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api.ppinfra.com/v3/openai" default: "https://api.ppinfra.com/v3/openai"
- name: args - name: args
label: label:
en_US: Args en_US: Args
zh_CN: 附加参数 zh_Hans: 附加参数
type: object type: object
required: true required: true
default: {} default: {}
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: int type: int
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: siliconflow-chat-completions name: siliconflow-chat-completions
label: label:
en_US: SiliconFlow en_US: SiliconFlow
zh_CN: 硅基流动 zh_Hans: 硅基流动
icon: siliconflow.svg icon: siliconflow.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api.siliconflow.cn/v1" default: "https://api.siliconflow.cn/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: volcark-chat-completions name: volcark-chat-completions
label: label:
en_US: Volc Engine Ark en_US: Volc Engine Ark
zh_CN: 火山方舟 zh_Hans: 火山方舟
icon: volcark.svg icon: volcark.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://ark.cn-beijing.volces.com/api/v3" default: "https://ark.cn-beijing.volces.com/api/v3"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: xai-chat-completions name: xai-chat-completions
label: label:
en_US: xAI en_US: xAI
zh_CN: xAI zh_Hans: xAI
icon: xai.svg icon: xai.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://api.x.ai/v1" default: "https://api.x.ai/v1"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
@@ -4,21 +4,21 @@ metadata:
name: zhipuai-chat-completions name: zhipuai-chat-completions
label: label:
en_US: ZhipuAI en_US: ZhipuAI
zh_CN: 智谱 AI zh_Hans: 智谱 AI
icon: zhipuai.svg icon: zhipuai.svg
spec: spec:
config: config:
- name: base_url - name: base_url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
default: "https://open.bigmodel.cn/api/paas/v4" default: "https://open.bigmodel.cn/api/paas/v4"
- name: timeout - name: timeout
label: label:
en_US: Timeout en_US: Timeout
zh_CN: 超时时间 zh_Hans: 超时时间
type: integer type: integer
required: true required: true
default: 120 default: 120
+35 -35
View File
@@ -1,20 +1,20 @@
name: ai name: ai
label: label:
en_US: AI Feature en_US: AI Feature
zh_CN: AI 能力 zh_Hans: AI 能力
stages: stages:
- name: runner - name: runner
label: label:
en_US: Runner en_US: Runner
zh_CN: 运行方式 zh_Hans: 运行方式
description: description:
en_US: Strategy to call AI to process messages en_US: Strategy to call AI to process messages
zh_CN: 调用 AI 处理消息的方式 zh_Hans: 调用 AI 处理消息的方式
config: config:
- name: runner - name: runner
label: label:
en_US: Runner en_US: Runner
zh_CN: 运行器 zh_Hans: 运行器
type: select type: select
required: true required: true
default: local-agent default: local-agent
@@ -22,66 +22,66 @@ stages:
- name: local-agent - name: local-agent
label: label:
en_US: Embedded Agent en_US: Embedded Agent
zh_CN: 内置 Agent zh_Hans: 内置 Agent
- name: dify-service-api - name: dify-service-api
label: label:
en_US: Dify Service API en_US: Dify Service API
zh_CN: Dify 服务 API zh_Hans: Dify 服务 API
- name: dashscope-app-api - name: dashscope-app-api
label: label:
en_US: Aliyun Dashscope App API en_US: Aliyun Dashscope App API
zh_CN: 阿里云百炼平台 API zh_Hans: 阿里云百炼平台 API
- name: local-agent - name: local-agent
label: label:
en_US: Embedded Agent en_US: Embedded Agent
zh_CN: 内置 Agent zh_Hans: 内置 Agent
description: description:
en_US: Configure the embedded agent of the pipeline en_US: Configure the embedded agent of the pipeline
zh_CN: 配置内置 Agent zh_Hans: 配置内置 Agent
config: config:
- name: model - name: model
label: label:
en_US: Model en_US: Model
zh_CN: 模型 zh_Hans: 模型
type: llm-model-selector type: llm-model-selector
required: true required: true
- name: max-round - name: max-round
label: label:
en_US: Max Round en_US: Max Round
zh_CN: 最大回合数 zh_Hans: 最大回合数
description: description:
en_US: The maximum number of previous messages that the agent can remember en_US: The maximum number of previous messages that the agent can remember
zh_CN: 最大前文消息回合数 zh_Hans: 最大前文消息回合数
type: integer type: integer
required: true required: true
default: 10 default: 10
- name: prompt - name: prompt
label: label:
en_US: Prompt en_US: Prompt
zh_CN: 提示词 zh_Hans: 提示词
description: description:
en_US: The prompt of the agent en_US: The prompt of the agent
zh_CN: 除非您了解消息结构,否则请只使用 system 单提示词 zh_Hans: 除非您了解消息结构,否则请只使用 system 单提示词
type: prompt-editor type: prompt-editor
required: true required: true
- name: dify-service-api - name: dify-service-api
label: label:
en_US: Dify Service API en_US: Dify Service API
zh_CN: Dify 服务 API zh_Hans: Dify 服务 API
description: description:
en_US: Configure the Dify service API of the pipeline en_US: Configure the Dify service API of the pipeline
zh_CN: 配置 Dify 服务 API zh_Hans: 配置 Dify 服务 API
config: config:
- name: base-url - name: base-url
label: label:
en_US: Base URL en_US: Base URL
zh_CN: 基础 URL zh_Hans: 基础 URL
type: string type: string
required: true required: true
- name: app-type - name: app-type
label: label:
en_US: App Type en_US: App Type
zh_CN: 应用类型 zh_Hans: 应用类型
type: select type: select
required: true required: true
default: chat default: chat
@@ -89,25 +89,25 @@ stages:
- name: chat - name: chat
label: label:
en_US: Chat en_US: Chat
zh_CN: 聊天(包括Chatflow zh_Hans: 聊天(包括Chatflow
- name: agent - name: agent
label: label:
en_US: Agent en_US: Agent
zh_CN: Agent zh_Hans: Agent
- name: workflow - name: workflow
label: label:
en_US: Workflow en_US: Workflow
zh_CN: 工作流 zh_Hans: 工作流
- name: api-key - name: api-key
label: label:
en_US: API Key en_US: API Key
zh_CN: API 密钥 zh_Hans: API 密钥
type: string type: string
required: true required: true
- name: thinking-convert - name: thinking-convert
label: label:
en_US: CoT Convert en_US: CoT Convert
zh_CN: 思维链转换策略 zh_Hans: 思维链转换策略
type: select type: select
required: true required: true
default: plain default: plain
@@ -115,27 +115,27 @@ stages:
- name: plain - name: plain
label: label:
en_US: Convert to <think>...</think> en_US: Convert to <think>...</think>
zh_CN: 转换成 <think>...</think> zh_Hans: 转换成 <think>...</think>
- name: original - name: original
label: label:
en_US: Original en_US: Original
zh_CN: 原始 zh_Hans: 原始
- name: remove - name: remove
label: label:
en_US: Remove en_US: Remove
zh_CN: 移除 zh_Hans: 移除
- name: dashscope-app-api - name: dashscope-app-api
label: label:
en_US: Aliyun Dashscope App API en_US: Aliyun Dashscope App API
zh_CN: 阿里云百炼平台 API zh_Hans: 阿里云百炼平台 API
description: description:
en_US: Configure the Aliyun Dashscope App API of the pipeline en_US: Configure the Aliyun Dashscope App API of the pipeline
zh_CN: 配置阿里云百炼平台 API zh_Hans: 配置阿里云百炼平台 API
config: config:
- name: app-type - name: app-type
label: label:
en_US: App Type en_US: App Type
zh_CN: 应用类型 zh_Hans: 应用类型
type: select type: select
required: true required: true
default: agent default: agent
@@ -143,30 +143,30 @@ stages:
- name: agent - name: agent
label: label:
en_US: Agent en_US: Agent
zh_CN: Agent zh_Hans: Agent
- name: workflow - name: workflow
label: label:
en_US: Workflow en_US: Workflow
zh_CN: 工作流 zh_Hans: 工作流
- name: api-key - name: api-key
label: label:
en_US: API Key en_US: API Key
zh_CN: API 密钥 zh_Hans: API 密钥
type: string type: string
required: true required: true
- name: app-id - name: app-id
label: label:
en_US: App ID en_US: App ID
zh_CN: 应用 ID zh_Hans: 应用 ID
type: string type: string
required: true required: true
- name: references_quote - name: references_quote
label: label:
en_US: References Quote en_US: References Quote
zh_CN: 引用文本 zh_Hans: 引用文本
description: description:
en_US: The text prompt when the references are included en_US: The text prompt when the references are included
zh_CN: 包含引用资料时的文本提示 zh_Hans: 包含引用资料时的文本提示
type: string type: string
required: false required: false
default: '参考资料来自:' default: '参考资料来自:'
+20 -20
View File
@@ -1,30 +1,30 @@
name: output name: output
label: label:
en_US: Output Processing en_US: Output Processing
zh_CN: 输出处理 zh_Hans: 输出处理
stages: stages:
- name: long-text-processing - name: long-text-processing
label: label:
en_US: Long Text Processing en_US: Long Text Processing
zh_CN: 长文本处理 zh_Hans: 长文本处理
config: config:
- name: threshold - name: threshold
label: label:
en_US: Threshold en_US: Threshold
zh_CN: 阈值 zh_Hans: 阈值
description: description:
en_US: The threshold of the long text en_US: The threshold of the long text
zh_CN: 超过此长度的文本将被处理 zh_Hans: 超过此长度的文本将被处理
type: integer type: integer
required: true required: true
default: 1000 default: 1000
- name: strategy - name: strategy
label: label:
en_US: Strategy en_US: Strategy
zh_CN: 策略 zh_Hans: 策略
description: description:
en_US: The strategy of the long text en_US: The strategy of the long text
zh_CN: 长文本的处理策略 zh_Hans: 长文本的处理策略
type: select type: select
required: true required: true
default: forward default: forward
@@ -32,76 +32,76 @@ stages:
- name: forward - name: forward
label: label:
en_US: Forward Message Component en_US: Forward Message Component
zh_CN: 转换为转发消息组件(部分平台不支持) zh_Hans: 转换为转发消息组件(部分平台不支持)
- name: image - name: image
label: label:
en_US: Convert to Image en_US: Convert to Image
zh_CN: 转换为图片 zh_Hans: 转换为图片
- name: font-path - name: font-path
label: label:
en_US: Font Path en_US: Font Path
zh_CN: 字体路径 zh_Hans: 字体路径
description: description:
en_US: The path of the font to be used when converting to image en_US: The path of the font to be used when converting to image
zh_CN: 选用转换为图片时,所使用的字体路径 zh_Hans: 选用转换为图片时,所使用的字体路径
type: string type: string
required: false required: false
default: '' default: ''
- name: force-delay - name: force-delay
label: label:
en_US: Force Delay en_US: Force Delay
zh_CN: 强制延迟 zh_Hans: 强制延迟
description: description:
en_US: Force the output to be delayed for a while en_US: Force the output to be delayed for a while
zh_CN: 强制延迟一段时间后再回复给用户 zh_Hans: 强制延迟一段时间后再回复给用户
config: config:
- name: min - name: min
label: label:
en_US: Min Seconds en_US: Min Seconds
zh_CN: 最小秒数 zh_Hans: 最小秒数
type: integer type: integer
required: true required: true
default: 0 default: 0
- name: max - name: max
label: label:
en_US: Max Seconds en_US: Max Seconds
zh_CN: 最大秒数 zh_Hans: 最大秒数
type: integer type: integer
required: true required: true
default: 0 default: 0
- name: misc - name: misc
label: label:
en_US: Misc en_US: Misc
zh_CN: 杂项 zh_Hans: 杂项
config: config:
- name: hide-exception - name: hide-exception
label: label:
en_US: Hide Exception en_US: Hide Exception
zh_CN: 不输出异常信息给用户 zh_Hans: 不输出异常信息给用户
type: boolean type: boolean
required: true required: true
default: true default: true
- name: at-sender - name: at-sender
label: label:
en_US: At Sender en_US: At Sender
zh_CN: 在群聊回复中@发送者 zh_Hans: 在群聊回复中@发送者
type: boolean type: boolean
required: true required: true
default: true default: true
- name: quote-origin - name: quote-origin
label: label:
en_US: Quote Origin Message en_US: Quote Origin Message
zh_CN: 引用原消息 zh_Hans: 引用原消息
type: boolean type: boolean
required: true required: true
default: false default: false
- name: track-function-calls - name: track-function-calls
label: label:
en_US: Track Function Calls en_US: Track Function Calls
zh_CN: 跟踪函数调用 zh_Hans: 跟踪函数调用
description: description:
en_US: If enabled, the function calls will be tracked and output to the user en_US: If enabled, the function calls will be tracked and output to the user
zh_CN: 启用后,Agent 每次调用工具时都会输出一个提示给用户 zh_Hans: 启用后,Agent 每次调用工具时都会输出一个提示给用户
type: boolean type: boolean
required: true required: true
default: false default: false
+14 -14
View File
@@ -1,17 +1,17 @@
name: safety name: safety
label: label:
en_US: Safety Control en_US: Safety Control
zh_CN: 安全控制 zh_Hans: 安全控制
stages: stages:
- name: content-filter - name: content-filter
label: label:
en_US: Content Filter en_US: Content Filter
zh_CN: 内容过滤 zh_Hans: 内容过滤
config: config:
- name: scope - name: scope
label: label:
en_US: Scope en_US: Scope
zh_CN: 检查范围 zh_Hans: 检查范围
type: select type: select
required: true required: true
default: all default: all
@@ -19,48 +19,48 @@ stages:
- name: all - name: all
label: label:
en_US: All en_US: All
zh_CN: 全部 zh_Hans: 全部
- name: income-msg - name: income-msg
label: label:
en_US: Income Message en_US: Income Message
zh_CN: 传入消息(用户消息) zh_Hans: 传入消息(用户消息)
- name: output-msg - name: output-msg
label: label:
en_US: Output Message en_US: Output Message
zh_CN: 传出消息(机器人消息) zh_Hans: 传出消息(机器人消息)
- name: check-sensitive-words - name: check-sensitive-words
label: label:
en_US: Check Sensitive Words en_US: Check Sensitive Words
zh_CN: 检查敏感词 zh_Hans: 检查敏感词
description: description:
en_US: Sensitive words can be configured in data/metadata/sensitive-words.json en_US: Sensitive words can be configured in data/metadata/sensitive-words.json
zh_CN: 敏感词内容可以在 data/metadata/sensitive-words.json 中配置 zh_Hans: 敏感词内容可以在 data/metadata/sensitive-words.json 中配置
type: boolean type: boolean
required: true required: true
default: false default: false
- name: rate-limit - name: rate-limit
label: label:
en_US: Rate Limit en_US: Rate Limit
zh_CN: 速率限制 zh_Hans: 速率限制
config: config:
- name: window-length - name: window-length
label: label:
en_US: Window Length en_US: Window Length
zh_CN: 窗口长度(秒) zh_Hans: 窗口长度(秒)
type: integer type: integer
required: true required: true
default: 60 default: 60
- name: limitation - name: limitation
label: label:
en_US: Limitation en_US: Limitation
zh_CN: 限制次数 zh_Hans: 限制次数
type: integer type: integer
required: true required: true
default: 60 default: 60
- name: strategy - name: strategy
label: label:
en_US: Strategy en_US: Strategy
zh_CN: 策略 zh_Hans: 策略
type: select type: select
required: true required: true
default: drop default: drop
@@ -68,8 +68,8 @@ stages:
- name: drop - name: drop
label: label:
en_US: Drop en_US: Drop
zh_CN: 丢弃 zh_Hans: 丢弃
- name: wait - name: wait
label: label:
en_US: Wait en_US: Wait
zh_CN: 等待 zh_Hans: 等待
+24 -24
View File
@@ -1,68 +1,68 @@
name: trigger name: trigger
label: label:
en_US: Trigger en_US: Trigger
zh_CN: 触发条件 zh_Hans: 触发条件
stages: stages:
- name: group-respond-rules - name: group-respond-rules
label: label:
en_US: Group Respond Rule en_US: Group Respond Rule
zh_CN: 群响应规则 zh_Hans: 群响应规则
description: description:
en_US: The respond rule of the messages in the groups en_US: The respond rule of the messages in the groups
zh_CN: 群内消息的响应规则 zh_Hans: 群内消息的响应规则
config: config:
- name: at - name: at
label: label:
en_US: At en_US: At
zh_CN: '@' zh_Hans: '@'
description: description:
en_US: Whether to trigger when the message mentions the bot en_US: Whether to trigger when the message mentions the bot
zh_CN: 是否在消息@机器人时触发 zh_Hans: 是否在消息@机器人时触发
type: boolean type: boolean
required: true required: true
default: false default: false
- name: prefix - name: prefix
label: label:
en_US: Prefix en_US: Prefix
zh_CN: 前缀 zh_Hans: 前缀
description: description:
en_US: Messages with these prefixes will be responded (the prefixes will be removed automatically when sending to AI) en_US: Messages with these prefixes will be responded (the prefixes will be removed automatically when sending to AI)
zh_CN: 具有这些前缀的消息将被响应(发送给 AI 时会自动去除对应前缀) zh_Hans: 具有这些前缀的消息将被响应(发送给 AI 时会自动去除对应前缀)
type: array[string] type: array[string]
required: true required: true
default: [] default: []
- name: regexp - name: regexp
label: label:
en_US: Regexp en_US: Regexp
zh_CN: 正则表达式 zh_Hans: 正则表达式
description: description:
en_US: Messages with these regular expressions will be responded en_US: Messages with these regular expressions will be responded
zh_CN: 符合这些正则表达式的消息将被响应 zh_Hans: 符合这些正则表达式的消息将被响应
type: array[string] type: array[string]
required: true required: true
default: [] default: []
- name: random - name: random
label: label:
en_US: Random en_US: Random
zh_CN: 随机 zh_Hans: 随机
description: description:
en_US: The probability of the random response, range from 0.0 to 1.0 en_US: The probability of the random response, range from 0.0 to 1.0
zh_CN: 随机响应概率,范围为 0.0-1.0,对应 0% 到 100% zh_Hans: 随机响应概率,范围为 0.0-1.0,对应 0% 到 100%
type: float type: float
required: false required: false
default: 0 default: 0
- name: access-control - name: access-control
label: label:
en_US: Access Control en_US: Access Control
zh_CN: 访问控制 zh_Hans: 访问控制
config: config:
- name: mode - name: mode
label: label:
en_US: Mode en_US: Mode
zh_CN: 模式 zh_Hans: 模式
description: description:
en_US: The mode of the access control en_US: The mode of the access control
zh_CN: 访问控制模式 zh_Hans: 访问控制模式
type: select type: select
required: true required: true
default: blacklist default: blacklist
@@ -70,50 +70,50 @@ stages:
- name: blacklist - name: blacklist
label: label:
en_US: Blacklist en_US: Blacklist
zh_CN: 黑名单 zh_Hans: 黑名单
- name: whitelist - name: whitelist
label: label:
en_US: Whitelist en_US: Whitelist
zh_CN: 白名单 zh_Hans: 白名单
- name: blacklist - name: blacklist
label: label:
en_US: Blacklist en_US: Blacklist
zh_CN: 黑名单 zh_Hans: 黑名单
type: array[string] type: array[string]
required: true required: true
default: [] default: []
- name: whitelist - name: whitelist
label: label:
en_US: Whitelist en_US: Whitelist
zh_CN: 白名单 zh_Hans: 白名单
type: array[string] type: array[string]
required: true required: true
default: [] default: []
- name: ignore-rules - name: ignore-rules
label: label:
en_US: Ignore Rules en_US: Ignore Rules
zh_CN: 消息忽略规则 zh_Hans: 消息忽略规则
description: description:
en_US: Ignore rules that apply to both group and private messages en_US: Ignore rules that apply to both group and private messages
zh_CN: 对群聊、私聊消息均适用的忽略规则(优先级高于群响应规则) zh_Hans: 对群聊、私聊消息均适用的忽略规则(优先级高于群响应规则)
config: config:
- name: prefix - name: prefix
label: label:
en_US: Prefix en_US: Prefix
zh_CN: 前缀 zh_Hans: 前缀
description: description:
en_US: Messages with these prefixes will be ignored en_US: Messages with these prefixes will be ignored
zh_CN: 包含这些前缀的消息将被忽略 zh_Hans: 包含这些前缀的消息将被忽略
type: array[string] type: array[string]
required: true required: true
default: [] default: []
- name: regexp - name: regexp
label: label:
en_US: Regexp en_US: Regexp
zh_CN: 正则表达式 zh_Hans: 正则表达式
description: description:
en_US: Messages with these regular expressions will be ignored en_US: Messages with these regular expressions will be ignored
zh_CN: 符合这些正则表达式的消息将被忽略 zh_Hans: 符合这些正则表达式的消息将被忽略
type: array[string] type: array[string]
required: true required: true
default: [] default: []
@@ -9,7 +9,7 @@ export const testDynamicConfigList: IDynamicFormItemSchema[] = [
default: '', default: '',
id: '111', id: '111',
label: { label: {
zh_CN: '测试字段string', zh_Hans: '测试字段string',
en_US: 'eng test', en_US: 'eng test',
}, },
name: 'string_test', name: 'string_test',
@@ -20,7 +20,7 @@ export const testDynamicConfigList: IDynamicFormItemSchema[] = [
default: '', default: '',
id: '222', id: '222',
label: { label: {
zh_CN: '测试字段int', zh_Hans: '测试字段int',
en_US: 'int eng test', en_US: 'int eng test',
}, },
name: 'int_test', name: 'int_test',
@@ -31,7 +31,7 @@ export const testDynamicConfigList: IDynamicFormItemSchema[] = [
default: '', default: '',
id: '333', id: '333',
label: { label: {
zh_CN: '测试字段boolean', zh_Hans: '测试字段boolean',
en_US: 'boolean eng test', en_US: 'boolean eng test',
}, },
name: 'boolean_test', name: 'boolean_test',
+1 -1
View File
@@ -9,7 +9,7 @@ export interface ApiResponse<T> {
export interface I18nText { export interface I18nText {
en_US: string; en_US: string;
zh_CN: string; zh_Hans: string;
} }
export interface AsyncTaskCreatedResp { export interface AsyncTaskCreatedResp {
+1 -1
View File
@@ -1,5 +1,5 @@
export interface I18nLabel { export interface I18nLabel {
en_US: string; en_US: string;
zh_CN: string; zh_Hans: string;
ja_JP?: string; ja_JP?: string;
} }
+2 -2
View File
@@ -13,8 +13,8 @@ export default function I18nProvider({ children }: I18nProviderProps) {
} }
export function i18nObj(i18nText: I18nText): string { export function i18nObj(i18nText: I18nText): string {
const language = localStorage.getItem('langbot_language'); const language = localStorage.getItem('langbot_language');
if ((language === 'zh-Hans' && i18nText.zh_CN) || !i18nText.en_US) { if ((language === 'zh-Hans' && i18nText.zh_Hans) || !i18nText.en_US) {
return i18nText.zh_CN; return i18nText.zh_Hans;
} }
return i18nText.en_US; return i18nText.en_US;
} }