yxmiler commited on
Commit
98068ce
·
verified ·
1 Parent(s): 6f66fe9

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -814,7 +814,7 @@ app.post('/hf/v1/chat/completions', async (req, res) => {
814
  let retryCount = 0;
815
  const grokClient = new GrokApiClient(req.body.model);
816
  const requestPayload = await grokClient.prepareChatRequest(req.body);
817
-
818
  while (retryCount < CONFIG.RETRY.MAX_ATTEMPTS) {
819
  retryCount++;
820
  if (!CONFIG.API.TEMP_COOKIE) {
 
814
  let retryCount = 0;
815
  const grokClient = new GrokApiClient(req.body.model);
816
  const requestPayload = await grokClient.prepareChatRequest(req.body);
817
+ Logger.info(`当前请求体: ${JSON.stringify(requestPayload,null,2)}`, 'Server');
818
  while (retryCount < CONFIG.RETRY.MAX_ATTEMPTS) {
819
  retryCount++;
820
  if (!CONFIG.API.TEMP_COOKIE) {