translateModel
translateModel(
modelName,options):TranslationResult
Defined in: ai.matey.core/src/model-translation.ts:117
Translate a model name using exact mapping.
Parameters
Section titled “Parameters”modelName
Section titled “modelName”string
Original model name
options
Section titled “options”Translation options
Returns
Section titled “Returns”Translation result
Example
Section titled “Example”const result = translateModel('gpt-4', { mapping: { 'gpt-4': 'claude-3-5-sonnet-20241022' }});// → { translated: 'claude-3-5-sonnet-20241022', source: 'exact', wasTranslated: true }