intellij-ideaopenai-apiintellij-plugingithub-copilot

How to change GitHub Copilot model in IntelliJ?


In VS Code there is simply a button at the bottom to pick what LLM model you want to use, I haven't been able to figure out how to do it in IntelliJ.

More specifically I would like to use Claude Sonnet, if anyone knows a work around.


Solution

  • Update

    This is now available in the nightly build of the plugin: https://github.com/orgs/community/discussions/149173 (thank you fmsedrez!)

    It took me a few tries for the drop down to show up (restarting IntelliJ, resizing the panel, etc). I'm not sure if the issue is in the UI or somewhere else.

    Old answer

    The IntelliJ plugin lags behind the VSCode plugin and switching models is not implemented (which sucks).

    If you want to chat, you can go to the copilot chat page on github and select a different model. The main drawback is that the model won't have access to the context in IntelliJ so you would need to provide more data in your questions.

    Another alternative is to have the project open on VSCode too and do any heavy chat there.

    It's a real shame as GPT 4o often fails to answer questions or it goes into a loop repeating the last 2 answers compared to Claude 3.5 or o1.

    Edit

    If you would like to see this soon, please vote or comment on one or all of the open discussions that have raised this: