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.

move models file to "data"

Forhad Hosainf0b6bf4e49a5
diff --git a/packages/runtime/src/core/config/models.json b/packages/runtime/data/models.json
similarity index 100%
rename from packages/runtime/src/core/config/models.json
rename to packages/runtime/data/models.json
diff --git a/packages/runtime/src/core/config/models.config.ts b/packages/runtime/src/core/config/models.config.ts
index 8a0e5d0b..7b39ad3c 100644
--- a/packages/runtime/src/core/config/models.config.ts
+++ b/packages/runtime/src/core/config/models.config.ts
@@ -5,9 +5,10 @@
* from a JSON file for better maintainability.
*/
-import modelsData from "./models.json";
+import modelsData from "@data/models.json";
-export interface ModelConfig {
+// Base interface with all possible fields for non-Echo models
+interface BaseModelConfig {
label: string;
modelId: string;
provider: string;
@@ -27,6 +28,14 @@ export interface ModelConfig {
default?: boolean;
}
+// Echo model configuration (only requires provider)
+interface EchoModelConfig {
+ provider: "Echo";
+}
+
+// Conditional type: if provider is "Echo", use EchoModelConfig, otherwise use BaseModelConfig
+export type ModelConfig = EchoModelConfig | BaseModelConfig;
+
export type ModelsConfig = Record<string, ModelConfig>;
// Load models configuration from JSON file