Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written)
OpenAssistant Conversations (oasst2)
What is wrong with my code??????
In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
- User
What is wrong with my code??????
- Assistant
Could you please provide me with the code, and if possible, also the error message, to better help me figure out what's wrong with your code.
- Userjavascript
document.addEventListener("DOMContentLoaded", function(event) { // get #in and #out textareas var inText = document.getElementById('in'); var outText = document.getElementById('out'); // when #in textarea is changed, update #out textarea inText.addEventListener('input', function() { outText = btoa(inText); }); // when #out textarea is changed, update #in textarea outText.addEventListener('input', function() { inText = atob(outText); }); }); - Assistant
It seems that you are trying to change the text value of the elements inText and outText, however you using the reference to the elements, instead of the reference to their text. To solve it, replace the line in inText input event with:
javascriptoutText.value = btoa(inText.value);and replace the line in outText input event with
javascriptinText.value = atob(outText.value);
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)