Spaces:
Sleeping
Sleeping
Update index.js
Browse files
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) {
|