diff --git a/CHANGELOG.md b/CHANGELOG.md index 8714d65b..1c6ba710 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v1.0.6 +#### 🐛 Fixes + +- Fix Mac command spaces (PR: #71) + + ## v1.0.5 #### 🚀 Features diff --git a/CHANGELOG.release.md b/CHANGELOG.release.md index a7154196..5c0fb233 100644 --- a/CHANGELOG.release.md +++ b/CHANGELOG.release.md @@ -1,13 +1,4 @@ -### 🚀 Features - -- Expose new llama.cpp arguments (PR: #60) -- Allow to change prompt (PR: #64) -- Feature/variable sliders (PR: #65) -- Feature/show expert options (PR: #66) -- Improve package loading (PR: #67) - ### 🐛 Fixes -- Fail if port is already in use (PR: #62) -- Run server without mmap on mmap crash (PR: #63) +- Fix Mac command spaces (PR: #71) diff --git a/Runtime/LLM.cs b/Runtime/LLM.cs index 0fe02372..72b1a238 100644 --- a/Runtime/LLM.cs +++ b/Runtime/LLM.cs @@ -193,8 +193,9 @@ private string EscapeSpaces(string input) { if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer) return input.Replace(" ", "\" \""); - else - return input.Replace(" ", "' '"); + if (input.Contains(" ")) + return $"'{input}'"; + return input; } private void RunServerCommand(string exe, string args) diff --git a/VERSION b/VERSION index 80e0d762..e8763988 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.0.5 +v1.0.6 diff --git a/package.json b/package.json index 8d521272..294e7e3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ai.undream.llmunity", - "version": "1.0.5", + "version": "1.0.6", "displayName": "LLMUnity", "description": "LLMUnity allows to run and distribute LLM models in the Unity engine.", "unity": "2022.3",