Skip to content

Commit

Permalink
use spaces only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
amakropoulos committed Feb 6, 2024
1 parent 19184e6 commit 3e689c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Runtime/LLM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ private string EscapeSpaces(string input)
{
if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer)
return input.Replace(" ", "\" \"");
return $"'{input}'";
if (input.Contains(" "))
return $"'{input}'";
return input;
}

private void RunServerCommand(string exe, string args)
Expand Down

0 comments on commit 3e689c7

Please sign in to comment.