st endTime = Date.now();
                    const responseText = await response_fetch.text();
                    
                    // Try to format as JSON
                    let formattedResponse;
                    try {
                        const jsonResponse = JSON.parse(responseText);
                        formattedResponse = JSON.stringify(jsonResponse, null, 2);
                    } catch {
                        formattedResponse = responseText;
                    }
                  