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

Function pick

packages/opencode/src/cli/cmd/run.ts:31–38  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

29type ModelInput = Parameters<OpencodeClient["session"]["prompt"]>[0]["model"]
30
31function pick(value: string | undefined): ModelInput | undefined {
32 if (!value) return undefined
33 const [providerID, ...rest] = value.split("/")
34 return {
35 providerID,
36 modelID: rest.join("/"),
37 } as ModelInput
38}
39
40function resolveRunInput(value?: string, piped?: string): string | undefined {
41 if (!value) {

Callers 2

executeFunction · 0.70
run.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected