hasTranslation
hasTranslation(
modelName,mapping):boolean
Defined in: ai.matey.core/src/model-translation.ts:214
Check if a model name has an exact translation.
Parameters
Section titled “Parameters”modelName
Section titled “modelName”string
Model name to check
mapping
Section titled “mapping”Model mapping
Returns
Section titled “Returns”boolean
True if exact translation exists
Example
Section titled “Example”const mapping = { 'gpt-4': 'claude-3-5-sonnet' };hasTranslation('gpt-4', mapping); // → truehasTranslation('gpt-3.5', mapping); // → false