diff --git a/config.example.yaml b/config.example.yaml index 19e8e129..8eca6511 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -215,7 +215,7 @@ ws-auth: false # Global OAuth model name mappings (per channel) # These mappings rename model IDs for both model listing and request routing. -# Supported channels: gemini-cli, vertex, aistudio, antigravity, claude, codex, qwen, iflow, kiro. +# Supported channels: gemini-cli, vertex, aistudio, antigravity, claude, codex, qwen, iflow, kiro, github-copilot. # NOTE: Mappings do not apply to gemini-api-key, codex-api-key, claude-api-key, openai-compatibility, vertex-api-key, or ampcode. # oauth-model-mappings: # gemini-cli: @@ -246,6 +246,9 @@ ws-auth: false # kiro: # - name: "kiro-claude-opus-4-5" # alias: "op45" +# github-copilot: +# - name: "gpt-5" +# alias: "copilot-gpt5" # OAuth provider excluded models # oauth-excluded-models: diff --git a/internal/config/config.go b/internal/config/config.go index 0cd89dc4..27a47266 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -100,7 +100,7 @@ type Config struct { // OAuthModelMappings defines global model name mappings for OAuth/file-backed auth channels. // These mappings affect both model listing and model routing for supported channels: - // gemini-cli, vertex, aistudio, antigravity, claude, codex, qwen, iflow. + // gemini-cli, vertex, aistudio, antigravity, claude, codex, qwen, iflow, kiro, github-copilot. // // NOTE: This does not apply to existing per-credential model alias features under: // gemini-api-key, codex-api-key, claude-api-key, openai-compatibility, vertex-api-key, and ampcode. diff --git a/sdk/cliproxy/auth/model_name_mappings.go b/sdk/cliproxy/auth/model_name_mappings.go index d4200671..5bbab098 100644 --- a/sdk/cliproxy/auth/model_name_mappings.go +++ b/sdk/cliproxy/auth/model_name_mappings.go @@ -139,7 +139,7 @@ func modelMappingChannel(auth *Auth) string { // and auth kind. Returns empty string if the provider/authKind combination doesn't support // OAuth model mappings (e.g., API key authentication). // -// Supported channels: gemini-cli, vertex, aistudio, antigravity, claude, codex, qwen, iflow. +// Supported channels: gemini-cli, vertex, aistudio, antigravity, claude, codex, qwen, iflow, kiro, github-copilot. func OAuthModelMappingChannel(provider, authKind string) string { provider = strings.ToLower(strings.TrimSpace(provider)) authKind = strings.ToLower(strings.TrimSpace(authKind)) @@ -165,7 +165,7 @@ func OAuthModelMappingChannel(provider, authKind string) string { return "codex" case "gemini-cli", "aistudio", "antigravity", "qwen", "iflow": return provider - case "kiro": + case "kiro", "github-copilot": return provider default: return ""