Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,8 @@ def _on_result_copilot_models(self, payload: list[CopilotModel]) -> None:
def _set_model_policy(self, index: int, models: list[CopilotModel]) -> None:
if index == -1:
return
model_name = models[index]["modelFamily"]
self.view.run_command("copilot_set_model_policy", {"model": model_name, "status": "enabled"})
model_id = models[index]["id"]
self.view.run_command("copilot_set_model_policy", {"model": model_id, "status": "enabled"})


class CopilotCodeReviewCommand(CopilotTextCommand):
Expand Down
1 change: 1 addition & 0 deletions plugin/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ class CopilotUserDefinedPromptTemplates(TypedDict, total=True):


class CopilotModel(TypedDict, total=True):
id: str
modelFamily: str
modelName: str
scopes: list[str]
Expand Down
Loading