Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

explain why we keep some original model info for alias

Forhad Hosain1676223da644
diff --git a/packages/app/src/backend/services/LLMHelper/index.ts b/packages/app/src/backend/services/LLMHelper/index.ts
index 2ee339f2..d98a999d 100644
--- a/packages/app/src/backend/services/LLMHelper/index.ts
+++ b/packages/app/src/backend/services/LLMHelper/index.ts
@@ -26,6 +26,9 @@ async function getUserLLMModels(req: Request) {
const aliasOptions = JSON.parse(JSON.stringify(LLMModels[modelTpl.alias] || {}));
delete aliasOptions.hidden; //do not override hide option because we may want to hide the original model but keep the alias
+ // We keep some of the original model information in the alias model to clearly show which model uses which alias.
+ // In the list, we display the original model label with the alias as a tag.
+ // However, when running the component, we properly use the alias model information.
const aliasOverrides = {
label: modelTpl.label,
modelId: modelTpl.modelId,