Inline Completions from Copilot or Posit AI?

Hello everyone,

I wanted to give Posit AI a shot because I was particularly interested in how the inline suggestions would change compared to using GitHub Copilot. The idea that it has access to my workspace and therefore suggests things actually relevant to what I'm currently working on as opposed to just taking a guess and hallucinating e.g. column names of a data frame sounded very appealing.

After using it for a couple of hours I don't notice any difference and it does not feel like the inline suggestions I get are based on my workspace at all. This made me wonder if Positron is still using GitHub Copilot instead of Posit AI for next edit suggestions. Is there a way to check if this is the case? I simply followed the setup outlined in the documentation.

Thanks in advance!

1 Like

Thank you for this question! One way to force GitHub Copilot not to give you inline completions is to put this in your settings:

    "github.copilot.enable": {
        "*": false
    }

I think if you have both providers configured, then both services will try to contribute inline completions and what you see will just be which one came in first.

1 Like

Hi julia,

Thanks a lot for your answer. I tried doing what you suggested, but I was either not getting any suggestions or sometimes upon a restart of Positron I would get some but they seemed no different.
For instance, I have loaded a csv file as a data frame which contains two error metrics (columns called "f1" and "mcc") for different scenarios. If I write a comment about plotting histograms I get the following suggestion:

# Create histograms of the error metrics in df_metrics
hist(df_metrics$precision, main = "Histogram of Precision", xlab = "Precision")
hist(df_metrics$recall, main = "Histogram of Recall", xlab = "Recall")
hist(df_metrics$f1, main = "Histogram of F1-Score", xlab = "F1-Score")

There are no columns called "precision" and "recall" in the data frame, though. Of course I'm not entirely sure, but is this expected behaviour from Posit AI? I tested it in RStudio as well, where the inline suggestions correctly used the "f1" and "mcc" columns.

On top of your suggestion I also tried setting

"github.copilot.nextEditSuggestions.enabled": false

But this lead to not getting any inline suggestions anymore. I then also just tried logging out of GitHub in Positron, in which case I was not getting any suggestions either no matter how I tweaked the settings.

So in short, logging out of GitHub Copilot in Positron leads to no inline suggestions but everything works as expected in RStudio. I realise that this is somewhat convoluted, but in case you have any further suggestions I would be very grateful!

1 Like