jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.67k stars 311 forks source link

CompleteCode and add_tests #213

Open sfrique opened 1 year ago

sfrique commented 1 year ago

Hello

I am starting you use this plugin, but whenever i try to use ChatGPTRun add_tests it only shows around 40 lines and also it seems to be cut

This is some example of the last part of suggestion:

    // Serve the request using the app
    app.ServeHTTP(res, req)
    // Check that the response status code is 200 OK
    if res.Code != http.StatusOK {
        t.Errorf("Expected status code

CompleteCode just breaks for me.. sometimes it suggest a few things, but mostly blank lines and such

Thanks, really nice plugin

dhollinger commented 1 year ago

I'm seeing this issue as well, it only shows a snippet of the test code, then cuts off.

dhollinger commented 1 year ago

Did some digging and it looks like ChatGPT will pause and wait for input to tell it to continue generating the code. That is probably what we're running into.