Skip to content

Commit 89833d4

Browse files
committed
fix(providers): remove gh-copilot and github-copilot aliases
The copilot provider is just 'copilot', not 'gh copilot' or 'github-copilot'. Simplifies the normalize_provider_type match to only accept 'copilot'.
1 parent e305da7 commit 89833d4

File tree

1 file changed

+1
-3
lines changed
  • crates/openshell-providers/src

1 file changed

+1
-3
lines changed

crates/openshell-providers/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn normalize_provider_type(input: &str) -> Option<&'static str> {
129129
match normalized.as_str() {
130130
"claude" => Some("claude"),
131131
"codex" => Some("codex"),
132-
"copilot" | "gh-copilot" | "github-copilot" => Some("copilot"),
132+
"copilot" => Some("copilot"),
133133
"opencode" => Some("opencode"),
134134
"generic" => Some("generic"),
135135
"openai" => Some("openai"),
@@ -167,8 +167,6 @@ mod tests {
167167
assert_eq!(normalize_provider_type("anthropic"), Some("anthropic"));
168168
assert_eq!(normalize_provider_type("nvidia"), Some("nvidia"));
169169
assert_eq!(normalize_provider_type("copilot"), Some("copilot"));
170-
assert_eq!(normalize_provider_type("gh-copilot"), Some("copilot"));
171-
assert_eq!(normalize_provider_type("github-copilot"), Some("copilot"));
172170
assert_eq!(normalize_provider_type("unknown"), None);
173171
}
174172

0 commit comments

Comments
 (0)