GetModelEnvVarName returns the native environment variable name that the OpenCode CLI uses for model selection. Setting OPENCODE_MODEL is equivalent to passing --model to the CLI.
()
| 38 | // GetModelEnvVarName returns the native environment variable name that the OpenCode CLI uses |
| 39 | // for model selection. Setting OPENCODE_MODEL is equivalent to passing --model to the CLI. |
| 40 | func (e *OpenCodeEngine) GetModelEnvVarName() string { |
| 41 | return constants.OpenCodeCLIModelEnvVar |
| 42 | } |
| 43 | |
| 44 | // GetRequiredSecretNames returns the list of secrets required by the OpenCode engine. |
| 45 | // By default, OpenCode routes through the Copilot API using COPILOT_GITHUB_TOKEN |
no outgoing calls