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

View File

@@ -15,7 +15,7 @@ class I18nString(pydantic.BaseModel):
en_US: str
"""英文"""
zh_CN: typing.Optional[str] = None
zh_Hans: typing.Optional[str] = None
"""中文"""
ja_JP: typing.Optional[str] = None
@@ -26,8 +26,8 @@ class I18nString(pydantic.BaseModel):
dic = {}
if self.en_US is not None:
dic['en_US'] = self.en_US
if self.zh_CN is not None:
dic['zh_CN'] = self.zh_CN
if self.zh_Hans is not None:
dic['zh_Hans'] = self.zh_Hans
if self.ja_JP is not None:
dic['ja_JP'] = self.ja_JP
return dic

View File

@@ -4,7 +4,7 @@ metadata:
name: MessagePlatformAdapter
label:
en_US: Message Platform Adapter
zh_CN: 消息平台适配器模板类
zh_Hans: 消息平台适配器模板类
spec:
type:
- python

View File

@@ -4,40 +4,40 @@ metadata:
name: aiocqhttp
label:
en_US: OneBot v11
zh_CN: OneBot v11
zh_Hans: OneBot v11
description:
en_US: OneBot v11 Adapter
zh_CN: OneBot v11 适配器,请查看文档了解使用方式
zh_Hans: OneBot v11 适配器,请查看文档了解使用方式
icon: onebot.png
spec:
config:
- name: host
label:
en_US: Host
zh_CN: 主机
zh_Hans: 主机
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
zh_CN: OneBot v11 监听的反向 WS 主机,除非你知道自己在做什么,否则请写 0.0.0.0
zh_Hans: OneBot v11 监听的反向 WS 主机,除非你知道自己在做什么,否则请写 0.0.0.0
type: string
required: true
default: 0.0.0.0
- name: port
label:
en_US: Port
zh_CN: 端口
zh_Hans: 端口
description:
en_US: Port
zh_CN: 监听的端口
zh_Hans: 监听的端口
type: integer
required: true
default: 2280
- name: access-token
label:
en_US: Access Token
zh_CN: 访问令牌
zh_Hans: 访问令牌
description:
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
required: false
default: ""

View File

@@ -4,45 +4,45 @@ metadata:
name: dingtalk
label:
en_US: DingTalk
zh_CN: 钉钉
zh_Hans: 钉钉
description:
en_US: DingTalk Adapter
zh_CN: 钉钉适配器,请查看文档了解使用方式
zh_Hans: 钉钉适配器,请查看文档了解使用方式
icon: dingtalk.svg
spec:
config:
- name: client_id
label:
en_US: Client ID
zh_CN: 客户端ID
zh_Hans: 客户端ID
type: string
required: true
default: ""
- name: client_secret
label:
en_US: Client Secret
zh_CN: 客户端密钥
zh_Hans: 客户端密钥
type: string
required: true
default: ""
- name: robot_code
label:
en_US: Robot Code
zh_CN: 机器人代码
zh_Hans: 机器人代码
type: string
required: true
default: ""
- name: robot_name
label:
en_US: Robot Name
zh_CN: 机器人名称
zh_Hans: 机器人名称
type: string
required: true
default: ""
- name: markdown_card
label:
en_US: Markdown Card
zh_CN: 是否使用 Markdown 卡片
zh_Hans: 是否使用 Markdown 卡片
type: boolean
required: false
default: true

View File

@@ -4,24 +4,24 @@ metadata:
name: discord
label:
en_US: Discord
zh_CN: Discord
zh_Hans: Discord
description:
en_US: Discord Adapter
zh_CN: Discord 适配器,请查看文档了解使用方式
zh_Hans: Discord 适配器,请查看文档了解使用方式
icon: discord.svg
spec:
config:
- name: client_id
label:
en_US: Client ID
zh_CN: 客户端ID
zh_Hans: 客户端ID
type: string
required: true
default: ""
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""

View File

@@ -4,52 +4,52 @@ metadata:
name: gewechat
label:
en_US: GeWeChat
zh_CN: GeWeChat个人微信
zh_Hans: GeWeChat个人微信
description:
en_US: GeWeChat Adapter
zh_CN: GeWeChat 适配器,请查看文档了解使用方式
zh_Hans: GeWeChat 适配器,请查看文档了解使用方式
icon: gewechat.png
spec:
config:
- name: gewechat_url
label:
en_US: GeWeChat URL
zh_CN: GeWeChat URL
zh_Hans: GeWeChat URL
type: string
required: true
default: ""
- name: gewechat_file_url
label:
en_US: GeWeChat file download URL
zh_CN: GeWeChat 文件下载URL
zh_Hans: GeWeChat 文件下载URL
type: string
required: true
default: ""
- name: port
label:
en_US: Port
zh_CN: 端口
zh_Hans: 端口
type: integer
required: true
default: 2286
- name: callback_url
label:
en_US: Callback URL
zh_CN: 回调URL
zh_Hans: 回调URL
type: string
required: true
default: ""
- name: app_id
label:
en_US: App ID
zh_CN: 应用ID
zh_Hans: 应用ID
type: string
required: true
default: ""
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""

View File

@@ -417,7 +417,7 @@ class LarkAdapter(adapter.MessagePlatformAdapter):
lark_message = await self.message_converter.yiri2target(message, self.api_client)
final_content = {
'zh_cn': {
'zh_Hans': {
'title': '',
'content': lark_message,
},

View File

@@ -4,61 +4,61 @@ metadata:
name: lark
label:
en_US: Lark
zh_CN: 飞书
zh_Hans: 飞书
description:
en_US: Lark Adapter
zh_CN: 飞书适配器,请查看文档了解使用方式
zh_Hans: 飞书适配器,请查看文档了解使用方式
icon: lark.svg
spec:
config:
- name: app_id
label:
en_US: App ID
zh_CN: 应用ID
zh_Hans: 应用ID
type: string
required: true
default: ""
- name: app_secret
label:
en_US: App Secret
zh_CN: 应用密钥
zh_Hans: 应用密钥
type: string
required: true
default: ""
- name: bot_name
label:
en_US: Bot Name
zh_CN: 机器人名称
zh_Hans: 机器人名称
type: string
required: true
default: ""
- name: enable-webhook
label:
en_US: Enable Webhook Mode
zh_CN: 启用Webhook模式
zh_Hans: 启用Webhook模式
description:
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
required: true
default: false
- name: port
label:
en_US: Webhook Port
zh_CN: Webhook端口
zh_Hans: Webhook端口
description:
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
required: true
default: 2285
- name: encrypt-key
label:
en_US: Encrypt Key
zh_CN: 加密密钥
zh_Hans: 加密密钥
description:
en_US: Only valid when webhook mode is enabled, please fill in the encrypt key
zh_CN: 仅在启用 Webhook 模式时有效,请填写加密密钥
zh_Hans: 仅在启用 Webhook 模式时有效,请填写加密密钥
type: string
required: true
default: ""

View File

@@ -4,38 +4,38 @@ metadata:
name: nakuru
label:
en_US: Nakuru
zh_CN: Nakuru
zh_Hans: Nakuru
description:
en_US: Nakuru Adapter
zh_CN: Nakuru 适配器(go-cqhttp),请查看文档了解使用方式
zh_Hans: Nakuru 适配器(go-cqhttp),请查看文档了解使用方式
icon: nakuru.png
spec:
config:
- name: host
label:
en_US: Host
zh_CN: 主机
zh_Hans: 主机
type: string
required: true
default: "127.0.0.1"
- name: http_port
label:
en_US: HTTP Port
zh_CN: HTTP端口
zh_Hans: HTTP端口
type: integer
required: true
default: 5700
- name: ws_port
label:
en_US: WebSocket Port
zh_CN: WebSocket端口
zh_Hans: WebSocket端口
type: integer
required: true
default: 8080
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""

View File

@@ -4,66 +4,66 @@ metadata:
name: officialaccount
label:
en_US: Official Account
zh_CN: 微信公众号
zh_Hans: 微信公众号
description:
en_US: Official Account Adapter
zh_CN: 微信公众号适配器,请查看文档了解使用方式
zh_Hans: 微信公众号适配器,请查看文档了解使用方式
icon: officialaccount.png
spec:
config:
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""
- name: EncodingAESKey
label:
en_US: EncodingAESKey
zh_CN: 消息加解密密钥
zh_Hans: 消息加解密密钥
type: string
required: true
default: ""
- name: AppID
label:
en_US: App ID
zh_CN: 应用ID
zh_Hans: 应用ID
type: string
required: true
default: ""
- name: AppSecret
label:
en_US: App Secret
zh_CN: 应用密钥
zh_Hans: 应用密钥
type: string
required: true
default: ""
- name: Mode
label:
en_US: Mode
zh_CN: 接入模式
zh_Hans: 接入模式
type: string
required: true
default: "drop"
- name: LoadingMessage
label:
en_US: Loading Message
zh_CN: 加载消息
zh_Hans: 加载消息
type: string
required: true
default: "AI正在思考中请发送任意内容获取回复。"
- name: host
label:
en_US: Host
zh_CN: 监听主机
zh_Hans: 监听主机
type: string
required: true
default: 0.0.0.0
- name: port
label:
en_US: Port
zh_CN: 监听端口
zh_Hans: 监听端口
type: integer
required: true
default: 2287

View File

@@ -4,31 +4,31 @@ metadata:
name: qq-botpy
label:
en_US: QQBotPy
zh_CN: QQBotPy
zh_Hans: QQBotPy
description:
en_US: QQ Official API (WebSocket)
zh_CN: QQ 官方 API (WebSocket),请查看文档了解使用方式
zh_Hans: QQ 官方 API (WebSocket),请查看文档了解使用方式
icon: qqbotpy.svg
spec:
config:
- name: appid
label:
en_US: App ID
zh_CN: 应用ID
zh_Hans: 应用ID
type: string
required: true
default: ""
- name: secret
label:
en_US: Secret
zh_CN: 密钥
zh_Hans: 密钥
type: string
required: true
default: ""
- name: intents
label:
en_US: Intents
zh_CN: 权限
zh_Hans: 权限
type: array
required: true
default: []

View File

@@ -4,38 +4,38 @@ metadata:
name: qqofficial
label:
en_US: QQ Official API
zh_CN: QQ 官方 API
zh_Hans: QQ 官方 API
description:
en_US: QQ Official API (Webhook)
zh_CN: QQ 官方 API (Webhook),请查看文档了解使用方式
zh_Hans: QQ 官方 API (Webhook),请查看文档了解使用方式
icon: qqofficial.svg
spec:
config:
- name: appid
label:
en_US: App ID
zh_CN: 应用ID
zh_Hans: 应用ID
type: string
required: true
default: ""
- name: secret
label:
en_US: Secret
zh_CN: 密钥
zh_Hans: 密钥
type: string
required: true
default: ""
- name: port
label:
en_US: Port
zh_CN: 监听端口
zh_Hans: 监听端口
type: integer
required: true
default: 2284
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""

View File

@@ -4,31 +4,31 @@ metadata:
name: slack
label:
en_US: Slack
zh_CN: Slack
zh_Hans: Slack
description:
en_US: Slack Adapter
zh_CN: Slack 适配器,请查看文档了解使用方式
zh_Hans: Slack 适配器,请查看文档了解使用方式
icon: slack.png
spec:
config:
- name: bot_token
label:
en_US: Bot Token
zh_CN: 机器人令牌
zh_Hans: 机器人令牌
type: string
required: true
default: ""
- name: signing_secret
label:
en_US: signing_secret
zh_CN: 密钥
zh_Hans: 密钥
type: string
required: true
default: ""
- name: port
label:
en_US: Port
zh_CN: 监听端口
zh_Hans: 监听端口
type: int
required: true
default: 2288

View File

@@ -4,24 +4,24 @@ metadata:
name: telegram
label:
en_US: Telegram
zh_CN: 电报
zh_Hans: 电报
description:
en_US: Telegram Adapter
zh_CN: 电报适配器,请查看文档了解使用方式
zh_Hans: 电报适配器,请查看文档了解使用方式
icon: telegram.svg
spec:
config:
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""
- name: markdown_card
label:
en_US: Markdown Card
zh_CN: 是否使用 Markdown 卡片
zh_Hans: 是否使用 Markdown 卡片
type: boolean
required: false
default: true

View File

@@ -4,62 +4,62 @@ metadata:
name: wecom
label:
en_US: WeCom
zh_CN: 企业微信
zh_Hans: 企业微信
description:
en_US: WeCom Adapter
zh_CN: 企业微信适配器,请查看文档了解使用方式
zh_Hans: 企业微信适配器,请查看文档了解使用方式
icon: wecom.png
spec:
config:
- name: host
label:
en_US: Host
zh_CN: 监听主机
zh_Hans: 监听主机
description:
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
required: true
default: "0.0.0.0"
- name: port
label:
en_US: Port
zh_CN: 监听端口
zh_Hans: 监听端口
type: integer
required: true
default: 2290
- name: corpid
label:
en_US: Corpid
zh_CN: 企业ID
zh_Hans: 企业ID
type: string
required: true
default: ""
- name: secret
label:
en_US: Secret
zh_CN: 密钥
zh_Hans: 密钥
type: string
required: true
default: ""
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""
- name: EncodingAESKey
label:
en_US: EncodingAESKey
zh_CN: 消息加解密密钥
zh_Hans: 消息加解密密钥
type: string
required: true
default: ""
- name: contacts_secret
label:
en_US: Contacts Secret
zh_CN: 通讯录密钥
zh_Hans: 通讯录密钥
type: string
required: true
default: ""

View File

@@ -4,45 +4,45 @@ metadata:
name: wecomcs
label:
en_US: WeComCustomerService
zh_CN: 企业微信客服
zh_Hans: 企业微信客服
description:
en_US: WeComCSAdapter
zh_CN: 企业微信客服适配器
zh_Hans: 企业微信客服适配器
icon: wecom.png
spec:
config:
- name: port
label:
en_US: Port
zh_CN: 监听端口
zh_Hans: 监听端口
type: int
required: true
default: 2289
- name: corpid
label:
en_US: Corpid
zh_CN: 企业ID
zh_Hans: 企业ID
type: string
required: true
default: ""
- name: secret
label:
en_US: Secret
zh_CN: 密钥
zh_Hans: 密钥
type: string
required: true
default: ""
- name: token
label:
en_US: Token
zh_CN: 令牌
zh_Hans: 令牌
type: string
required: true
default: ""
- name: EncodingAESKey
label:
en_US: EncodingAESKey
zh_CN: 消息加解密密钥
zh_Hans: 消息加解密密钥
type: string
required: true
default: ""

View File

@@ -39,8 +39,8 @@ class PluginLoader(loader.PluginLoader):
self.ap.logger.debug(f'注册插件 {name} {version} by {author}')
container = context.RuntimeContainer(
plugin_name=name,
plugin_label=discover_engine.I18nString(en_US=name, zh_CN=name),
plugin_description=discover_engine.I18nString(en_US=description, zh_CN=description),
plugin_label=discover_engine.I18nString(en_US=name, zh_Hans=name),
plugin_description=discover_engine.I18nString(en_US=description, zh_Hans=description),
plugin_version=version,
plugin_author=author,
plugin_repository='',

View File

@@ -4,7 +4,7 @@ metadata:
name: LLMAPIRequester
label:
en_US: LLM API Requester
zh_CN: LLM API 请求器
zh_Hans: LLM API 请求器
spec:
type:
- python

View File

@@ -4,21 +4,21 @@ metadata:
name: anthropic-messages
label:
en_US: Anthropic
zh_CN: Anthropic
zh_Hans: Anthropic
icon: anthropic.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api.anthropic.com/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: bailian-chat-completions
label:
en_US: Aliyun Bailian
zh_CN: 阿里云百炼
zh_Hans: 阿里云百炼
icon: bailian.png
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://dashscope.aliyuncs.com/compatible-mode/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: openai-chat-completions
label:
en_US: OpenAI
zh_CN: OpenAI
zh_Hans: OpenAI
icon: openai.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api.openai.com/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: deepseek-chat-completions
label:
en_US: DeepSeek
zh_CN: 深度求索
zh_Hans: 深度求索
icon: deepseek.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api.deepseek.com"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: gemini-chat-completions
label:
en_US: Google Gemini
zh_CN: Google Gemini
zh_Hans: Google Gemini
icon: gemini.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://generativelanguage.googleapis.com"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: gitee-ai-chat-completions
label:
en_US: Gitee AI
zh_CN: Gitee AI
zh_Hans: Gitee AI
icon: giteeai.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://ai.gitee.com/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: lmstudio-chat-completions
label:
en_US: LM Studio
zh_CN: LM Studio
zh_Hans: LM Studio
icon: lmstudio.webp
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "http://127.0.0.1:1234/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,28 +4,28 @@ metadata:
name: modelscope-chat-completions
label:
en_US: ModelScope
zh_CN: 魔搭社区
zh_Hans: 魔搭社区
icon: modelscope.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api-inference.modelscope.cn/v1"
- name: args
label:
en_US: Args
zh_CN: 附加参数
zh_Hans: 附加参数
type: object
required: true
default: {}
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: int
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: moonshot-chat-completions
label:
en_US: Moonshot
zh_CN: 月之暗面
zh_Hans: 月之暗面
icon: moonshot.png
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api.moonshot.com/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: ollama-chat
label:
en_US: Ollama
zh_CN: Ollama
zh_Hans: Ollama
icon: ollama.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "http://127.0.0.1:11434"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,27 +4,27 @@ metadata:
name: ppio-chat-completions
label:
en_US: ppio
zh_CN: 派欧云
zh_Hans: 派欧云
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api.ppinfra.com/v3/openai"
- name: args
label:
en_US: Args
zh_CN: 附加参数
zh_Hans: 附加参数
type: object
required: true
default: {}
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: int
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: siliconflow-chat-completions
label:
en_US: SiliconFlow
zh_CN: 硅基流动
zh_Hans: 硅基流动
icon: siliconflow.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api.siliconflow.cn/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: volcark-chat-completions
label:
en_US: Volc Engine Ark
zh_CN: 火山方舟
zh_Hans: 火山方舟
icon: volcark.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://ark.cn-beijing.volces.com/api/v3"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: xai-chat-completions
label:
en_US: xAI
zh_CN: xAI
zh_Hans: xAI
icon: xai.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://api.x.ai/v1"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120

View File

@@ -4,21 +4,21 @@ metadata:
name: zhipuai-chat-completions
label:
en_US: ZhipuAI
zh_CN: 智谱 AI
zh_Hans: 智谱 AI
icon: zhipuai.svg
spec:
config:
- name: base_url
label:
en_US: Base URL
zh_CN: 基础 URL
zh_Hans: 基础 URL
type: string
required: true
default: "https://open.bigmodel.cn/api/paas/v4"
- name: timeout
label:
en_US: Timeout
zh_CN: 超时时间
zh_Hans: 超时时间
type: integer
required: true
default: 120