mzbac/wizardCoder-vsc

response is not showing at the chat panel

d5423197 opened this issue · 2 comments

Hello there,

Thanks a lot for sharing such a great project with us.

I am trying to use your framework. I have built the server.

If I input some simple question, when the answer is short, it will show up in the chat panel.

But if I input some difficult question (the answer is long), the response will not show up (I saw the response at the server end)

1699004396159

Any help will be appreciated!

Thanks,

ZD

mzbac commented

Hi @d5423197,
I suspect that somehow your server is erroring out for the long response. Feel free to folk the repo and debug the code here.

if (predictions[0].text) {
await webViewProvider.sendMessageToWebView({
type: "addResponse",
value: predictions[0].text,
});
} else {
showTemporaryStatusMessage("Failed to call chatgpt!", 5000);
webViewProvider.sendMessageToWebView({
type: "addResponse",
value: "Failed to call chatgpt!",
});
}
} catch (error) {
console.error(error);
} finally {
hideStatusMessage();
}

Hi there,

Thanks for your reply. I do not know ts....

BTW, I can see the output from my server end. I just do not see it on the front panel.

Is there any way I can see the ts error message in VsCode.

Thanks,

ZD