mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
77 lines
1.8 KiB
YAML
77 lines
1.8 KiB
YAML
apiVersion: v1
|
||
kind: MessagePlatformAdapter
|
||
metadata:
|
||
name: officialaccount
|
||
label:
|
||
en_US: Official Account
|
||
zh_Hans: 微信公众号
|
||
description:
|
||
en_US: Official Account Adapter
|
||
zh_Hans: 微信公众号适配器,请查看文档了解使用方式
|
||
icon: officialaccount.png
|
||
spec:
|
||
config:
|
||
- name: token
|
||
label:
|
||
en_US: Token
|
||
zh_Hans: 令牌
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: EncodingAESKey
|
||
label:
|
||
en_US: EncodingAESKey
|
||
zh_Hans: 消息加解密密钥
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: AppID
|
||
label:
|
||
en_US: App ID
|
||
zh_Hans: 应用ID
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: AppSecret
|
||
label:
|
||
en_US: App Secret
|
||
zh_Hans: 应用密钥
|
||
type: string
|
||
required: true
|
||
default: ""
|
||
- name: Mode
|
||
label:
|
||
en_US: Mode
|
||
zh_Hans: 接入模式
|
||
type: string
|
||
required: true
|
||
default: "drop"
|
||
- name: LoadingMessage
|
||
label:
|
||
en_US: Loading Message
|
||
zh_Hans: 加载消息
|
||
type: string
|
||
required: true
|
||
default: "AI正在思考中,请发送任意内容获取回复。"
|
||
- name: host
|
||
label:
|
||
en_US: Host
|
||
zh_Hans: 监听主机
|
||
description:
|
||
en_US: The host that Official Account listens on for Webhook connections.
|
||
zh_Hans: 微信公众号监听的主机,除非你知道自己在做什么,否则请写 0.0.0.0
|
||
type: string
|
||
required: true
|
||
default: 0.0.0.0
|
||
- name: port
|
||
label:
|
||
en_US: Port
|
||
zh_Hans: 监听端口
|
||
type: integer
|
||
required: true
|
||
default: 2287
|
||
execution:
|
||
python:
|
||
path: ./officialaccount.py
|
||
attr: OfficialAccountAdapter
|