Function: resolveModelForProvider()
resolveModelForProvider(
modelKey,provider):string
Defined in: packages/workflow-engine/src/utils/batch/model-mapping.ts:148
Get the provider-specific model ID, with fallback to default
Parameters
modelKey
ModelKey | undefined
The ModelKey from model-helper.ts (optional)
provider
"google" | "anthropic" | "openai" | "openrouter"
The batch provider
Returns
string
Provider-specific model ID
Throws
Error if model is not supported by the provider