mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
hide invalid option
This commit is contained in:
parent
5d3a88f34f
commit
43a07c6aca
1 changed files with 8 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue