GeezerVison is showing github.com — fix(github): support variant in github action and opencode github run… · daniel-sc/opencode@2410593
File tree
Expand 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: github/action.yml +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,6 +30,10 @@ inputs: |
30 | 30 | description: "Comma-separated list of trigger phrases (case-insensitive). Defaults to '/opencode,/oc'" |
31 | 31 | required: false |
32 | 32 |
|
| 33 | + variant: |
| 34 | + description: "Model variant for provider-specific reasoning effort (e.g., high, max, minimal)" |
| 35 | + required: false |
| 36 | + |
33 | 37 | oidc_base_url: |
34 | 38 | description: "Base URL for OIDC token exchange API. Only required when running a custom GitHub App install. Defaults to https://api.opencode.ai" |
35 | 39 | required: false |
|
71 | 75 | PROMPT: ${{ inputs.prompt }} |
72 | 76 | USE_GITHUB_TOKEN: ${{ inputs.use_github_token }} |
73 | 77 | MENTIONS: ${{ inputs.mentions }} |
| 78 | + VARIANT: ${{ inputs.variant }} |
74 | 79 | OIDC_BASE_URL: ${{ inputs.oidc_base_url }} |
Collapse file
Copy file name to clipboardExpand all lines: packages/opencode/src/cli/cmd/github.ts +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -450,6 +450,7 @@ export const GithubRunCommand = cmd({ |
450 | 450 | const isWorkflowDispatchEvent = context.eventName === "workflow_dispatch" |
451 | 451 |
|
452 | 452 | const { providerID, modelID } = normalizeModel() |
| 453 | + const variant = process.env["VARIANT"] || undefined |
453 | 454 | const runId = normalizeRunId() |
454 | 455 | const share = normalizeShare() |
455 | 456 | const oidcBaseUrl = normalizeOidcBaseUrl() |
@@ -912,6 +913,7 @@ export const GithubRunCommand = cmd({ |
912 | 913 | const result = await SessionPrompt.prompt({ |
913 | 914 | sessionID: session.id, |
914 | 915 | messageID: Identifier.ascending("message"), |
| 916 | + variant, |
915 | 917 | model: { |
916 | 918 | providerID, |
917 | 919 | modelID, |
@@ -965,6 +967,7 @@ export const GithubRunCommand = cmd({ |
965 | 967 | const summary = await SessionPrompt.prompt({ |
966 | 968 | sessionID: session.id, |
967 | 969 | messageID: Identifier.ascending("message"), |
| 970 | + variant, |
968 | 971 | model: { |
969 | 972 | providerID, |
970 | 973 | modelID, |
|