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:
124124class GitHubCopilotProvider (BaseProvider ):
125125 id = "github-copilot"
126126 name = "GitHub Copilot"
127- models = ["* " ]
127+ models = ["default " ]
128128 model_id_key = "model"
129129 pypi_package_deps = ["pylspclient" ]
130130 help = (
@@ -143,6 +143,22 @@ def __init__(
143143 ):
144144 super ().__init__ (** kwargs )
145145 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" ]
146162
147163 async def generate_inline_completions (self , request : InlineCompletionRequest ):
148164 self ._llm .ensure_lsp_server_initialized ()
Original file line number Diff line number Diff line change 11from .ask import AskChatHandler
22from .base import BaseChatHandler , SlashCommandRoutingType
3- from .copilot import GitHubCopilotChatHandler
43from .default import DefaultChatHandler
54from .generate import GenerateChatHandler
65from .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"
5151generate = " jupyter_ai.chat_handlers.generate:GenerateChatHandler"
5252learn = " jupyter_ai.chat_handlers.learn:LearnChatHandler"
5353help = " jupyter_ai.chat_handlers.help:HelpChatHandler"
54- github = " jupyter_ai.chat_handlers.copilot:GitHubCopilotChatHandler"
5554
5655[project .optional-dependencies ]
5756test = [
You can’t perform that action at this time.
0 commit comments