mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 02:04:22 +01:00
hide invalid option
This commit is contained in:
@@ -146,7 +146,12 @@ export const GithubInstallCommand = cmd({
|
|||||||
const app = await getAppInfo()
|
const app = await getAppInfo()
|
||||||
await installGitHubApp()
|
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 provider = await promptProvider()
|
||||||
const model = await promptModel()
|
const model = await promptModel()
|
||||||
//const key = await promptKey()
|
//const key = await promptKey()
|
||||||
@@ -210,9 +215,8 @@ export const GithubInstallCommand = cmd({
|
|||||||
const priority: Record<string, number> = {
|
const priority: Record<string, number> = {
|
||||||
opencode: 0,
|
opencode: 0,
|
||||||
anthropic: 1,
|
anthropic: 1,
|
||||||
"github-copilot": 2,
|
openai: 2,
|
||||||
openai: 3,
|
google: 3,
|
||||||
google: 4,
|
|
||||||
}
|
}
|
||||||
let provider = await prompts.select({
|
let provider = await prompts.select({
|
||||||
message: "Select provider",
|
message: "Select provider",
|
||||||
|
|||||||
Reference in New Issue
Block a user