diff --git a/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/process_handlers/shinkai_node_process_handler.rs b/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/process_handlers/shinkai_node_process_handler.rs index 566038f6f..3eb89599b 100644 --- a/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/process_handlers/shinkai_node_process_handler.rs +++ b/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/process_handlers/shinkai_node_process_handler.rs @@ -52,6 +52,7 @@ impl ShinkaiNodeProcessHandler { let initial_agent_models = format!("ollama:{}", initial_model); let options = ShinkaiNodeOptions { port: Some("9550".to_string()), + ws_port: Some("9551".to_string()), node_storage_path: Some(default_node_storage_path), unstructured_server_url: Some("https://public.shinkai.com/x-un".to_string()), embeddings_server_url: Some("http://127.0.0.1:11435".to_string()), @@ -110,6 +111,7 @@ impl ShinkaiNodeProcessHandler { let base_options = self.options.clone(); let merged_options = ShinkaiNodeOptions { port: Some(options.port.unwrap_or_else(|| base_options.port.unwrap())), + ws_port: Some(options.ws_port.unwrap_or_else(|| base_options.ws_port.unwrap())), node_storage_path: Some( options .node_storage_path diff --git a/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/shinkai_node_options.rs b/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/shinkai_node_options.rs index 1ebdeeebb..9c09872a0 100644 --- a/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/shinkai_node_options.rs +++ b/apps/shinkai-desktop/src-tauri/src/local_shinkai_node/shinkai_node_options.rs @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone)] pub struct ShinkaiNodeOptions { pub port: Option, + pub ws_port: Option, pub node_storage_path: Option, pub unstructured_server_url: Option, pub embeddings_server_url: Option, diff --git a/apps/shinkai-desktop/src/lib/shinkai-node-manager/shinkai-node-manager-client-types.ts b/apps/shinkai-desktop/src/lib/shinkai-node-manager/shinkai-node-manager-client-types.ts index 1c2886dfa..1cc46f109 100644 --- a/apps/shinkai-desktop/src/lib/shinkai-node-manager/shinkai-node-manager-client-types.ts +++ b/apps/shinkai-desktop/src/lib/shinkai-node-manager/shinkai-node-manager-client-types.ts @@ -94,6 +94,7 @@ export type ShinkaiNodeManagerEventMap = export type ShinkaiNodeOptions = { port?: number; + ws_port?: number; unstructured_server_url?: string; embeddings_server_url?: string; first_device_needs_registration_code?: string;