GeezerVison is showing github.com — wip console · josephschmitt/opencode@0f8cb69
File treeExpand file treeCollapse file tree Open diff view settings packages/opencode/src/cli/cmd
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: opencode.json -18Lines changed: 0 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | 2 | "$schema": "https://opencode.ai/config.json", | 3 | | - "provider": { | 4 | | - "frank": { | 5 | | - "npm": "@ai-sdk/openai-compatible", | 6 | | - "name": "My AI ProviderDisplay Name", | 7 | | - "env": ["OPENCODE_API_KEY"], | 8 | | - "options": { | 9 | | - "baseURL": "https://console.frank.dev.opencode.ai/gateway/v1" | 10 | | - }, | 11 | | - "models": { | 12 | | - "x-ai/grok-code-fast-1": { | 13 | | - "name": "Grok Code Fast 1" | 14 | | - }, | 15 | | - "qwen/qwen3-coder": { | 16 | | - "name": "Qwen 3 Coder" | 17 | | - } | 18 | | - } | 19 | | - } | 20 | | - }, | 21 | 3 | "mcp": { | 22 | 4 | "weather": { | 23 | 5 | "type": "local", | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/auth.ts +8-7Lines changed: 8 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -103,12 +103,13 @@ export const AuthLoginCommand = cmd({ | 103 | 103 | await ModelsDev.refresh().catch(() => {}) | 104 | 104 | const providers = await ModelsDev.get() | 105 | 105 | const priority: Record<string, number> = { | 106 | | - anthropic: 0, | 107 | | - "github-copilot": 1, | 108 | | - openai: 2, | 109 | | - google: 3, | 110 | | - openrouter: 4, | 111 | | - vercel: 5, | | 106 | + opencode: 0, | | 107 | + anthropic: 1, | | 108 | + "github-copilot": 2, | | 109 | + openai: 3, | | 110 | + google: 4, | | 111 | + openrouter: 5, | | 112 | + vercel: 6, | 112 | 113 | } | 113 | 114 | let provider = await prompts.autocomplete({ | 114 | 115 | message: "Select provider", | @@ -124,7 +125,7 @@ export const AuthLoginCommand = cmd({ | 124 | 125 | map((x) => ({ | 125 | 126 | label: x.name, | 126 | 127 | value: x.id, | 127 | | - hint: priority[x.id] === 0 ? "recommended" : undefined, | | 128 | + hint: priority[x.id] <= 1 ? "recommended" : undefined, | 128 | 129 | })), | 129 | 130 | ), | 130 | 131 | { | |
Collapse file Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/github.ts +8-5Lines changed: 8 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -93,10 +93,13 @@ export const GithubInstallCommand = cmd({ | 93 | 93 |
| 94 | 94 | async function promptProvider() { | 95 | 95 | const priority: Record<string, number> = { | 96 | | - anthropic: 0, | 97 | | - "github-copilot": 1, | 98 | | - openai: 2, | 99 | | - google: 3, | | 96 | + opencode: 0, | | 97 | + anthropic: 1, | | 98 | + "github-copilot": 2, | | 99 | + openai: 3, | | 100 | + google: 4, | | 101 | + openrouter: 5, | | 102 | + vercel: 6, | 100 | 103 | } | 101 | 104 | let provider = await prompts.select({ | 102 | 105 | message: "Select provider", | @@ -111,7 +114,7 @@ export const GithubInstallCommand = cmd({ | 111 | 114 | map((x) => ({ | 112 | 115 | label: x.name, | 113 | 116 | value: x.id, | 114 | | - hint: priority[x.id] === 0 ? "recommended" : undefined, | | 117 | + hint: priority[x.id] <= 1 ? "recommended" : undefined, | 115 | 118 | })), | 116 | 119 | ), | 117 | 120 | }) | |
|