MCPcopy Index your code
hub / github.com/anomalyco/opencode / normalizeModel

Function normalizeModel

packages/opencode/src/cli/cmd/github.handler.ts:655–664  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

653 process.exit(exitCode)
654
655 function normalizeModel() {
656 const value = process.env["MODEL"]
657 if (!value) throw new Error(`Environment variable "MODEL" is not set`)
658
659 const { providerID, modelID } = Provider.parseModel(value)
660
661 if (!providerID.length || !modelID.length)
662 throw new Error(`Invalid model ${value}. Model must be in the format "provider/model".`)
663 return { providerID, modelID }
664 }
665
666 function normalizeRunId() {
667 const value = process.env["GITHUB_RUN_ID"]

Callers 1

github.handler.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected