add more models to copilot
This commit is contained in:
parent
9c31b6ccda
commit
f6cbad0373
1 changed files with 23 additions and 8 deletions
|
|
@ -116,15 +116,29 @@ in
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# Copilot
|
# Copilot
|
||||||
|
{
|
||||||
|
model_name = "copilot-claude-sonnet-4.5";
|
||||||
|
litellm_params = {
|
||||||
|
model = "github_copilot/claude-sonnet-4.5";
|
||||||
|
extra_headers = {
|
||||||
|
editor-version = "vscode/${pkgs.vscode.version}";
|
||||||
|
editor-plugin-version = "copilot/${pkgs.vscode-marketplace-release.github.copilot.version}";
|
||||||
|
Copilot-Integration-Id = "vscode-chat";
|
||||||
|
Copilot-Vision-Request = "true";
|
||||||
|
user-agent = "GithubCopilot/${pkgs.vscode-marketplace-release.github.copilot.version}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
model_name = "copilot-claude-sonnet-4";
|
model_name = "copilot-claude-sonnet-4";
|
||||||
litellm_params = {
|
litellm_params = {
|
||||||
model = "github_copilot/claude-sonnet-4";
|
model = "github_copilot/claude-sonnet-4";
|
||||||
extra_headers = {
|
extra_headers = {
|
||||||
"editor-version" = "vscode/1.85.1";
|
editor-version = "vscode/${pkgs.vscode.version}";
|
||||||
"Copilot-Integration-Id" = "vscode-chat";
|
editor-plugin-version = "copilot/${pkgs.vscode-marketplace-release.github.copilot.version}";
|
||||||
"user-agent" = "GithubCopilot/1.155.0";
|
Copilot-Integration-Id = "vscode-chat";
|
||||||
"editor-plugin-version" = "copilot/1.155.0";
|
Copilot-Vision-Request = "true";
|
||||||
|
user-agent = "GithubCopilot/${pkgs.vscode-marketplace-release.github.copilot.version}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -133,10 +147,11 @@ in
|
||||||
litellm_params = {
|
litellm_params = {
|
||||||
model = "github_copilot/gemini-2.5-pro";
|
model = "github_copilot/gemini-2.5-pro";
|
||||||
extra_headers = {
|
extra_headers = {
|
||||||
"editor-version" = "vscode/1.85.1";
|
editor-version = "vscode/${pkgs.vscode.version}";
|
||||||
"Copilot-Integration-Id" = "vscode-chat";
|
editor-plugin-version = "copilot/${pkgs.vscode-marketplace-release.github.copilot.version}";
|
||||||
"user-agent" = "GithubCopilot/1.155.0";
|
Copilot-Integration-Id = "vscode-chat";
|
||||||
"editor-plugin-version" = "copilot/1.155.0";
|
Copilot-Vision-Request = "true";
|
||||||
|
user-agent = "GithubCopilot/${pkgs.vscode-marketplace-release.github.copilot.version}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue