fix: use language-neutral test message for reconnect endpoint

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/37db3285-91fb-4df3-83a0-7315b0efa428

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-11 11:50:11 +00:00 committed by GitHub
parent 3fedcab0d9
commit 4547000dd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ app.post('/api/chat/reconnect', async (_req, res) => {
if (gwStats.availableModels > 0) {
// 发送一条简短测试消息验证真实连通性
try {
const testResult = await domesticGateway.chat('reconnect-test', '你好');
const testResult = await domesticGateway.chat('reconnect-test', 'ping');
if (testResult.success) {
return res.json({
success: true,
@ -331,7 +331,7 @@ app.post('/api/chat/reconnect', async (_req, res) => {
// 降级到通用聊天引擎测试
if (chatEngine) {
try {
const testResult = await chatEngine.chat('reconnect-test', '你好');
const testResult = await chatEngine.chat('reconnect-test', 'ping');
if (testResult.message && testResult.model !== 'offline') {
return res.json({
success: true,