Update index.js
Browse files568 unmodified lines56957057157257257357457531 unmodified lines607608609610611612613217 unmodified lines831832833833834835836837568 unmodified lines if (linejosn?.isThinking && !CONFIG.IS_THINKING) { result.token = "<think>" + linejosn?.token; CONFIG.IS_THINKING = true; } else if (CONFIG.IS_THINKING && !linejosn.isThinking) { } else if (!linejosn.isThinking && CONFIG.IS_THINKING) { result.token = "</think>" + linejosn?.token; CONFIG.IS_THINKING = false; } else {31 unmodified lines if (!data.trim()) continue; if (data === "[DONE]") continue; const linejosn = JSON.parse(data); Logger.info(`当前数据: ${linejosn}`, 'Server'); if (linejosn?.error) { Logger.error(JSON.stringify(linejosn, null, 2), 'Server'); stream.destroy();217 unmodified lines throw new Error('无可用令牌'); } Logger.info(`当前令牌索引: ${CONFIG.SSO_INDEX}`, 'Server'); Logger.info(`当前令牌: ${CONFIG.API.SIGNATURE_COOKIE}`, 'Server'); Logger.info(`当前令牌: ${JSON.stringify(CONFIG.API.SIGNATURE_COOKIE,null,2)}`, 'Server'); const newMessageReq = await fetch(`${CONFIG.API.BASE_URL}/api/rpc`, { method: 'POST', headers: {index.js+3-2