Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Response Bug #7

Closed
appatalks opened this issue Jan 29, 2023 · 1 comment
Closed

No Response Bug #7

appatalks opened this issue Jan 29, 2023 · 1 comment

Comments

@appatalks
Copy link
Owner

For whatever reason, text-davinchi-003 after a handful of conversations may respond with ("Text: "") with a ("Reason: stop") .. It's super random, and I am not certain as to the exact reason.

-- Possible whitespace in the code somewhere?
-- Hitting Token limit early on?
-- Bug with davinchi-003?

Can force it to continue stop defined command "&*&" and something totally random like, "Hello!!!!" is sent.

@appatalks
Copy link
Owner Author

Corrected with workaround:

    else if (oJson.choices && oJson.choices[0].text)
    {
        var s = oJson.choices[0].text;
        // Empty Response Handling       
        if (s == "") {
            txtOutput.value += "AI: I'm sorry can you please ask me in another way?";
        } else {
            txtOutput.value += "AI: " + s.trim();
        }
        masterOutput += "\n" + txtOutput.value + "\n";
        localStorage.setItem("masterOutput", masterOutput);
        lastResponse = s;
        } 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant