jan/src-tauri
Akarshan 6c769c5db9
feat: refactor llama server process storage to use HashMap
Change the llama_server_process state from an Option<Child> to a HashMap<String, Child> to support managing multiple server instances by PID. This allows precise process tracking and termination, replacing the previous single-process limitation.

Previously, only one server process could be tracked at a time. Now, each process is stored with its PID as the key, enabling:
- Accurate session matching during unloading
- Proper termination of specific processes
- Better error handling for mismatched PIDs

The load_llama_model function now inserts processes into the map, and unload_llama_model removes them by PID.
2025-07-02 12:27:34 +07:00
..
2025-05-15 17:10:20 +07:00
2025-05-15 17:10:00 +07:00
2025-05-15 17:09:58 +07:00
2025-07-02 12:27:17 +07:00
2025-07-02 12:27:33 +07:00