From d8c730341a49c5dbd55891ec147378e35cf1ff44 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Thu, 27 Mar 2025 00:33:54 +0800 Subject: [PATCH] perf: standardize integer in config field schema --- pkg/platform/sources/aiocqhttp.yaml | 2 +- pkg/platform/sources/gewechat.yaml | 2 +- pkg/platform/sources/lark.yaml | 2 +- pkg/platform/sources/nakuru.yaml | 4 ++-- pkg/platform/sources/officialaccount.yaml | 2 +- pkg/platform/sources/qqofficial.yaml | 2 +- pkg/platform/sources/wecom.yaml | 2 +- pkg/provider/modelmgr/requesters/anthropicmsgs.yaml | 2 +- pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/chatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/ollamachat.yaml | 2 +- pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/xaichatcmpl.yaml | 2 +- pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml | 2 +- 19 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pkg/platform/sources/aiocqhttp.yaml b/pkg/platform/sources/aiocqhttp.yaml index a2c230a7..19876ffd 100644 --- a/pkg/platform/sources/aiocqhttp.yaml +++ b/pkg/platform/sources/aiocqhttp.yaml @@ -21,7 +21,7 @@ spec: label: en_US: Port zh_CN: 端口 - type: int + type: integer required: true default: 2280 - name: access-token diff --git a/pkg/platform/sources/gewechat.yaml b/pkg/platform/sources/gewechat.yaml index 01967ffc..24131a99 100644 --- a/pkg/platform/sources/gewechat.yaml +++ b/pkg/platform/sources/gewechat.yaml @@ -28,7 +28,7 @@ spec: label: en_US: Port zh_CN: 端口 - type: int + type: integer required: true default: 2286 - name: callback_url diff --git a/pkg/platform/sources/lark.yaml b/pkg/platform/sources/lark.yaml index 6170e367..3b369670 100644 --- a/pkg/platform/sources/lark.yaml +++ b/pkg/platform/sources/lark.yaml @@ -42,7 +42,7 @@ spec: label: en_US: Webhook Port zh_CN: Webhook端口 - type: int + type: integer required: true default: 2285 - name: encrypt-key diff --git a/pkg/platform/sources/nakuru.yaml b/pkg/platform/sources/nakuru.yaml index b64e191b..19bcb1ba 100644 --- a/pkg/platform/sources/nakuru.yaml +++ b/pkg/platform/sources/nakuru.yaml @@ -21,14 +21,14 @@ spec: label: en_US: HTTP Port zh_CN: HTTP端口 - type: int + type: integer required: true default: 5700 - name: ws_port label: en_US: WebSocket Port zh_CN: WebSocket端口 - type: int + type: integer required: true default: 8080 - name: token diff --git a/pkg/platform/sources/officialaccount.yaml b/pkg/platform/sources/officialaccount.yaml index dbd84a77..c379df13 100644 --- a/pkg/platform/sources/officialaccount.yaml +++ b/pkg/platform/sources/officialaccount.yaml @@ -49,7 +49,7 @@ spec: label: en_US: Port zh_CN: 监听端口 - type: int + type: integer required: true default: 2287 execution: diff --git a/pkg/platform/sources/qqofficial.yaml b/pkg/platform/sources/qqofficial.yaml index 4d7430ea..1c9a6956 100644 --- a/pkg/platform/sources/qqofficial.yaml +++ b/pkg/platform/sources/qqofficial.yaml @@ -28,7 +28,7 @@ spec: label: en_US: Port zh_CN: 监听端口 - type: int + type: integer required: true default: 2284 - name: token diff --git a/pkg/platform/sources/wecom.yaml b/pkg/platform/sources/wecom.yaml index 6b6c26eb..89fd1b57 100644 --- a/pkg/platform/sources/wecom.yaml +++ b/pkg/platform/sources/wecom.yaml @@ -21,7 +21,7 @@ spec: label: en_US: Port zh_CN: 监听端口 - type: int + type: integer required: true default: 2290 - name: corpid diff --git a/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml b/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml index fe3b335c..80380857 100644 --- a/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml +++ b/pkg/provider/modelmgr/requesters/anthropicmsgs.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml b/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml index 0851b561..74d197ca 100644 --- a/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/bailianchatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/chatcmpl.yaml b/pkg/provider/modelmgr/requesters/chatcmpl.yaml index 2e326efb..fe4d3cb5 100644 --- a/pkg/provider/modelmgr/requesters/chatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/chatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml b/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml index 7563c176..2ef91aa2 100644 --- a/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/deepseekchatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml index 828f45c1..11f7e06e 100644 --- a/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/giteeaichatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml b/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml index 52a3018f..959d4151 100644 --- a/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/lmstudiochatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml b/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml index df2a5979..56deb1df 100644 --- a/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/moonshotchatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/ollamachat.yaml b/pkg/provider/modelmgr/requesters/ollamachat.yaml index 0c34d938..b162e5db 100644 --- a/pkg/provider/modelmgr/requesters/ollamachat.yaml +++ b/pkg/provider/modelmgr/requesters/ollamachat.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml b/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml index 4dec12ff..28d534f6 100644 --- a/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/siliconflowchatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml b/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml index 02842fce..f18c7b2c 100644 --- a/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/volcarkchatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml index 16a509c1..ceda8c0d 100644 --- a/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/xaichatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: diff --git a/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml b/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml index 19f1a715..3d112ca1 100644 --- a/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml +++ b/pkg/provider/modelmgr/requesters/zhipuaichatcmpl.yaml @@ -18,7 +18,7 @@ spec: label: en_US: Timeout zh_CN: 超时时间 - type: int + type: integer required: true default: 120 execution: