MCPcopy Create free account
hub / github.com/github/gh-aw / GetModelEnvVarName

Method GetModelEnvVarName

pkg/workflow/opencode_engine.go:40–42  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
40func (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

Callers 1

TestOpenCodeEngineFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestOpenCodeEngineFunction · 0.76