getModelId
getModelId(
model):string
Defined in: core/model-shortcuts.ts:244
Extract the model ID from a full model string.
Parameters
Section titled “Parameters”string
Full model string (provider:model-id)
Returns
Section titled “Returns”string
Model ID, or the original string if no prefix
Example
Section titled “Example”getModelId('openai:gpt-4o') // → 'gpt-4o'getModelId('anthropic:claude') // → 'claude'getModelId('gpt4') // → 'gpt4'