fix 修复openai格式流式响应的结束标记问题

This commit is contained in:
shaw
2025-07-22 18:00:24 +08:00
parent e77945a3e3
commit a431778363
7 changed files with 47 additions and 33 deletions

View File

@@ -137,7 +137,7 @@ router.post('/messages', authenticateApiKey, async (req, res) => {
// 处理速率限制
if (error.status === 429) {
if (apiKeyData && req.account) {
if (req.apiKey && req.account) {
await geminiAccountService.setAccountRateLimited(req.account.id, true);
}
}