summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-10-19 20:51:33 -0500
committerAiden Cline <[email protected]>2025-10-19 20:51:33 -0500
commit43a07c6aca4e7ec5bbbb324943341dce1c3844be (patch)
treea8426d526977e0475426b606f1e4fce719104abb
parent5d3a88f34fcc1b4c1f0abe91226bbf2619c2b7a4 (diff)
downloadopencode-43a07c6aca4e7ec5bbbb324943341dce1c3844be.tar.gz
opencode-43a07c6aca4e7ec5bbbb324943341dce1c3844be.zip
hide invalid option
-rw-r--r--packages/opencode/src/cli/cmd/github.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/opencode/src/cli/cmd/github.ts b/packages/opencode/src/cli/cmd/github.ts
index fcf107e34..d8fc2f3ac 100644
--- a/packages/opencode/src/cli/cmd/github.ts
+++ b/packages/opencode/src/cli/cmd/github.ts
@@ -146,7 +146,12 @@ export const GithubInstallCommand = cmd({
const app = await getAppInfo()
await installGitHubApp()
- const providers = await ModelsDev.get()
+ const providers = await ModelsDev.get().then((p) => {
+ // TODO: add guide for copilot, for now just hide it
+ delete p["github-copilot"]
+ return p
+ })
+
const provider = await promptProvider()
const model = await promptModel()
//const key = await promptKey()
@@ -210,9 +215,8 @@ export const GithubInstallCommand = cmd({
const priority: Record<string, number> = {
opencode: 0,
anthropic: 1,
- "github-copilot": 2,
- openai: 3,
- google: 4,
+ openai: 2,
+ google: 3,
}
let provider = await prompts.select({
message: "Select provider",