MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getOpenCodeModelString

Function getOpenCodeModelString

worker/src/components/ai/opencode.ts:152–159  ·  view source on GitHub ↗
(
      model: { provider: string; modelId: string } | undefined,
    )

Source from the content-addressed store, hash-verified

150
151 // Helper to map provider to OpenCode model string format
152 const getOpenCodeModelString = (
153 model: { provider: string; modelId: string } | undefined,
154 ): string => {
155 if (!model) return 'gpt-4o';
156 // OpenCode expects models in format: provider/modelId
157 // Most providers follow this pattern
158 return `${model.provider}/${model.modelId}`;
159 };
160
161 // 2. Prepare opencode.json config
162 // Note: We use 'host' networking, so we can reach localhost

Callers 1

executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected