You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Overview:
I propose a feature that adds a "Continue" button to the ChatGPT interface, enabling users to retrieve additional code from truncated responses. This would enhance usability and productivity for developers.
Code Snippet:
// Function to create and insert the "Continue" buttonfunctioncreateBtn(){letcontinueBtn=document.createElement('button');continueBtn.textContent="Continue";continueBtn.className='btn btn-neutral';continueBtn.disabled=true;// Start with disabled statereturncontinueBtn;}// Function to get the last assistant's code blockfunctiongetLastAssistantCode(){letassistantMessages=document.querySelectorAll('.assistant');if(assistantMessages.length===0)returnnull;letlastAssistant=assistantMessages[assistantMessages.length-1];letcodeBlocks=lastAssistant.querySelectorAll('code.hljs');if(codeBlocks.length===0)returnnull;letlastCodeBlock=codeBlocks[codeBlocks.length-1];returnlastCodeBlock.innerText;}// Function to update the textarea with the continuation promptfunctionupdateTextArea(value){lettextarea=document.querySelector('textarea');if(textarea){textarea.value=value;}}
The text was updated successfully, but these errors were encountered:
Sup @GITHUBTRASHACCOUNT the plugin already auto-continues truncated responses including code by auto-clicking native Continue button. Does this not happen for you? Also you can make PR and I can see it in action (and provide me test prompts)
Feature Request: Code Completer for ChatGPT
Overview:
I propose a feature that adds a "Continue" button to the ChatGPT interface, enabling users to retrieve additional code from truncated responses. This would enhance usability and productivity for developers.
Code Snippet:
The text was updated successfully, but these errors were encountered: