diff --git a/src/modules/llms/server/openai/models/together.models.ts b/src/modules/llms/server/openai/models/together.models.ts index 700a8dec0..69a2c1d5a 100644 --- a/src/modules/llms/server/openai/models/together.models.ts +++ b/src/modules/llms/server/openai/models/together.models.ts @@ -62,7 +62,7 @@ export function togetherAIModelsToModelDescriptions(wireModels: unknown): ModelD // heuristics for names const label = model.display_name || model.id.replaceAll('/', ' ยท ').replaceAll(/[_-]/g, ' '); - const description = `${model.organization || 'Toghether AI'} ${model.type} model. ${model.link || ''}`; + const description = `${model.organization || 'Together AI'} ${model.type} model. ${model.link || ''}`; const contextWindow = model.context_length || null; let chatPrice: ModelDescriptionSchema['chatPrice'] | undefined = undefined; if (typeof model.pricing?.input === 'number' && typeof model.pricing?.output === 'number') { @@ -75,7 +75,7 @@ export function togetherAIModelsToModelDescriptions(wireModels: unknown): ModelD }; } const interfaces = [LLM_IF_OAI_Chat]; - if (model.id.indexOf('vision') !== -1) + if (model.id.toLowerCase().includes('vision') || model.id.toLowerCase().includes('-vl')) interfaces.push(LLM_IF_OAI_Vision); return fromManualMapping(_knownTogetherAIChatModels, model.id, model.created, undefined, {