File tree Expand file tree Collapse file tree 4 files changed +17
-56
lines changed
jupyter-ai-magics/jupyter_ai_magics/partner_providers Expand file tree Collapse file tree 4 files changed +17
-56
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def _llm_type(self) -> str:
124
124
class GitHubCopilotProvider (BaseProvider ):
125
125
id = "github-copilot"
126
126
name = "GitHub Copilot"
127
- models = ["* " ]
127
+ models = ["default " ]
128
128
model_id_key = "model"
129
129
pypi_package_deps = ["pylspclient" ]
130
130
help = (
@@ -143,6 +143,22 @@ def __init__(
143
143
):
144
144
super ().__init__ (** kwargs )
145
145
self ._llm = GitHubCopilotLLM (lsp_bin_path = self .lsp_bin_path )
146
+
147
+ @classmethod
148
+ def chat_models (self ):
149
+ """
150
+ Empty list because Copilot LSP does not support the chat feature
151
+ https://github.com/github/copilot-language-server-release/issues/1
152
+ """
153
+ return []
154
+
155
+ @classmethod
156
+ def completion_models (self ):
157
+ """
158
+ Only `default` (GPT-4o as of May 2025) because Copilot LSP does not support different model selection
159
+ https://docs.github.com/en/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-code-completion
160
+ """
161
+ return ["default" ]
146
162
147
163
async def generate_inline_completions (self , request : InlineCompletionRequest ):
148
164
self ._llm .ensure_lsp_server_initialized ()
Original file line number Diff line number Diff line change 1
1
from .ask import AskChatHandler
2
2
from .base import BaseChatHandler , SlashCommandRoutingType
3
- from .copilot import GitHubCopilotChatHandler
4
3
from .default import DefaultChatHandler
5
4
from .generate import GenerateChatHandler
6
5
from .help import HelpChatHandler
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ ask = "jupyter_ai.chat_handlers.ask:AskChatHandler"
51
51
generate = " jupyter_ai.chat_handlers.generate:GenerateChatHandler"
52
52
learn = " jupyter_ai.chat_handlers.learn:LearnChatHandler"
53
53
help = " jupyter_ai.chat_handlers.help:HelpChatHandler"
54
- github = " jupyter_ai.chat_handlers.copilot:GitHubCopilotChatHandler"
55
54
56
55
[project .optional-dependencies ]
57
56
test = [
You can’t perform that action at this time.
0 commit comments