gpt4all icon indicating copy to clipboard operation
gpt4all copied to clipboard

cannot perform simple coding assistance

Open pixelass opened this issue 2 years ago • 2 comments

testing for simple JavaScript asistance without success (incomplete code and strange logic)

I need a javascript that runs a for loop for 10 iterations. Answer must be pure valid javascript only. I want to parse the text, so the entire answer needs to be JavaScript

const input = `This is some sample string.`; // Your code will run on this variable
let resultString = '';
for (var i=0 ;i<10 &&resultString.length> 256 ;++i) {// This for loop runs for a total of ten iterations and checks if the resulting String has more than two hundred fifty six characters, which is enough space to store it in memory without overflowing
    resultString = input; // The code will parse this string into an array or object.

pixelass avatar Apr 07 '23 06:04 pixelass

What happens if you remove "I want to parse the text"?

bjcscat avatar Apr 11 '23 19:04 bjcscat

What happens if you remove "I want to parse the text"?

No difference, the given pompt was one of many tries to get a valid answer. ALl GPT modes (including davinci) from OpenAI are capable of solving this tasks, as are several other open-source models

pixelass avatar Apr 12 '23 00:04 pixelass

Stale, please open a new issue if this is still relevant.

niansa avatar Aug 11 '23 11:08 niansa