<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RED PILL AI Terminal</title>
    <style>
        body{font-family:'Courier New',Courier,monospace;background-color:#1e1e1e;color:#00ff00;margin:0;padding:0;display:flex;justify-content:center;align-items:center;height:100vh;}
        .container{width:750px;height:500px;display:flex;flex-direction:column;background-color:#2e2e2e;border-radius:10px;box-shadow:0px 0px 15px rgba(0,0,0,.7);padding:20px;overflow:hidden;}
        .output-area{background-color:#1e1e1e;color:#00ff00;flex-grow:1;border-radius:10px;padding:10px;overflow-y:auto;white-space:pre-wrap;font-size:14px;border:1px solid #333333;}
        .input-area{background-color:#1e1e1e;color:#ffffff;border:none;outline:none;padding:10px;font-size:14px;border-radius:10px;margin-top:10px;width:100%;}
        .input-area:focus{background-color:#333333;}
        .button{padding:10px 20px;margin-top:10px;border:none;border-radius:5px;cursor:pointer;font-size:14px;font-weight:bold;transition:all .3s ease;}
        .button.submit{background-color:#4CAF50;color:white;}
        .button.exit{background-color:#f44336;color:white;}
        .button:hover{opacity:.8;}
        /*master fucking coder right here
    </style>
</head>
<body>

<div class="container">
    <div class="output-area" id="outputArea">
        Pls don't use inspect element my code is shit
    </div>
    <input type="text" id="inputArea" class="input-area" placeholder="Enter prompt...">
    <button class="button submit" onclick="getResponse()">Submit</button>
    <button class="button exit" onclick="exitApp()">Exit</button>
</div>

<script>
    async function getResponse(){
        const userPrompt=document.getElementById('inputArea').value;if(userPrompt.trim().toLowerCase()=='exit'){exitApp();return;}const outputArea=document.getElementById('outputArea');outputArea.innerHTML+=`<br><strong>Prompt:</strong> ${userPrompt}<br>`;outputArea.innerHTML+=`<em>Generating response... Please wait.</em><br>`;try{const response=await fetch('https://api.cohere.ai/v1/generate',{method:'POST',headers:{'Content-Type':'application/json','Authorization':'Bearer RALN8eBShYhm5b5cFgnRWMP1ZtYY92kdpm2y8bXQ'},body:JSON.stringify({model:'command-xlarge',prompt:userPrompt,max_tokens:10000,temperature:.7})});const data=await response.json();if(data&&data.generations){outputArea.innerHTML+=`<strong>RED PILL:</strong> ${data.generations[0].text}<br>`;}else{outputArea.innerHTML+=`<strong>ERROR:</strong> No response from API.<br>`;}}catch(error){outputArea.innerHTML+=`<strong>ERROR:</strong> Something went wrong. Please try again.<br>`;}outputArea.scrollTop=outputArea.scrollHeight;document.getElementById('inputArea').value='';}
    function exitApp(){window.close();}
    //may god be with my this is so shit.
</script>

</body>
</html>