onse;
                                        response.innerHTML = `<div class="streaming-output">Streaming response:\n\n${streamContent}</div>`;
                                    }
                                } catch (e) {
                                    // Ignore JSON parse errors for partial chunks
                                }
                            }
                        }
                    }
                    
                    const endTime = Date.now();
                  