diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index a7edbbd36..177de83ca 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -60,6 +60,11 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = ) { return true; } + // LGAI EXAONE models expose an OpenAI-compatible API with tool + // calling support when served via frameworks like vLLM + if (model.toLowerCase().includes("exaone")) { + return true; + } // firworks-ai https://docs.fireworks.ai/guides/function-calling if (model.startsWith("accounts/fireworks/models/")) { switch (model.substring(26)) { @@ -299,6 +304,8 @@ export function isRecommendedAgentModel(modelName: string): boolean { [/gpt/, /4/], [/claude/, /sonnet/, /3\.5|3\.7|3-5|3-7|-4/], [/claude/, /opus/, /-4/], + // EXAONE 4.0 and 4.0-1 variants + [/exaone/, /4\.0(-1)?/], ]; for (const combo of recs) { if (combo.every((regex) => modelName.toLowerCase().match(regex))) { @@ -311,6 +318,11 @@ export function modelSupportsNativeTools(modelDescription: ModelDescription) { if (modelDescription.capabilities?.tools !== undefined) { return modelDescription.capabilities.tools; } + // EXAONE 4.0 models advertise tool-calling capability regardless of + // the provider used to serve them. + if (modelDescription.model.toLowerCase().includes("exaone")) { + return true; + } const providerSupport = PROVIDER_TOOL_SUPPORT[modelDescription.provider]; if (!providerSupport) { return false; diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index f68ac0555..c2d10702d 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -302,6 +302,32 @@ export const models: { [key: string]: ModelPackage } = { providerOptions: ["nebius"], isOpenSource: true, }, + exaone32B: { + title: "EXAONE 4.0-1 32B", + description: + "LG AI Research's 32B model with integrated reasoning and agentic tool use capabilities.", + refUrl: "https://huggingface.co/LGAI-EXAONE/EXAONE-4.0-1.32B", + params: { + title: "EXAONE-4.0-1.32B", + model: "LGAI-EXAONE/EXAONE-4.0-1.32B", + contextLength: 131072, + }, + providerOptions: ["openai"], + isOpenSource: true, + }, + exaone12B: { + title: "EXAONE 4.0-1.2B", + description: + "Compact EXAONE 4.0 model suitable for on-device use while retaining tool calling support.", + refUrl: "https://huggingface.co/LGAI-EXAONE/EXAONE-4.0-1.2B", + params: { + title: "EXAONE-4.0-1.2B", + model: "LGAI-EXAONE/EXAONE-4.0-1.2B", + contextLength: 65536, + }, + providerOptions: ["openai"], + isOpenSource: true, + }, moonshotChat: { title: "Moonshot Chat", description: "Moonshot AI provides high-performance large language models",