JBGruber / askgpt

A chat interface build on top of OpenAI's API endpoints
GNU General Public License v3.0
54 stars 5 forks source link

Trying to annotate selected code #8

Closed JW-spec-tech closed 1 year ago

JW-spec-tech commented 1 year ago

Getting the following output:

askgpt::annotate_code() ✔ GPT is thinking ⠧ [9.2s] Warning message: In file(loc, "ab") : file("") only supports open = "w+" and open = "w+b": using the former

I am running on rstudio server

JBGruber commented 1 year ago

Thanks for making me aware of this! It seems like the addin is only working with named files. file("") shows me that the file you are trying to change (by adding annotations) is "" (so nothing) which does not work.

I will try to write a clear error or warning message as I don't know how to work around that.