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.

provide current model for getSortedModelsByFeatures() in ai chat model dropdown

Forhad Hosain77da3745579d
diff --git a/packages/app/src/react/features/ai-chat/components/header/model-dropdown/index.tsx b/packages/app/src/react/features/ai-chat/components/header/model-dropdown/index.tsx
index 85041214..d1bb1b1f 100644
--- a/packages/app/src/react/features/ai-chat/components/header/model-dropdown/index.tsx
+++ b/packages/app/src/react/features/ai-chat/components/header/model-dropdown/index.tsx
@@ -34,7 +34,10 @@ export const ModelDropdown: FC<IProps> = (props) => {
.getState()
.init()
.finally(() => {
- const models: Array<TLLMModel> = LLMRegistry.getSortedModelsByFeatures('tools').map(
+ const models: Array<TLLMModel> = LLMRegistry.getSortedModelsByFeatures({
+ features: 'tools',
+ selectedModel: currentModel,
+ }).map(
(model) => ({
label: model.label,
value: model.entryId,