Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-the-crayon committed Apr 25, 2024
1 parent 1d03418 commit d57eaed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ echo 'export PATH="$HOME/.cache/lmstudio/bin:$PATH"' >> ~/.bashrc
#### Windows

- `lms.exe` should already be in your PATH after installation. Test it by running `lms version` in powershell or cmd.
- `lms.exe` should already be in your PATH after installation. Test it by running `lms` in powershell or cmd.

# Usage

Expand Down
3 changes: 2 additions & 1 deletion src/subcommands/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { installCli } from "@lmstudio/lms-lmstudio/dist/installCli";
import { command } from "cmd-ts";
import { platform } from "os";

export const bootstrap = command({
name: "bootstrap",
description: "Bootstrap the CLI",
args: {},
handler: async () => {
await installCli({ skipConfirmation: true });
await installCli({ skipConfirmation: platform() !== "linux" });
},
});
13 changes: 7 additions & 6 deletions src/subcommands/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,13 @@ export const load = command({
path = "";
model = await selectModelToLoad(models, modelPaths, path, 5, lastLoadedMap);
} else if (initialFilteredModels.length === 1) {
console.info(
text`
! Confirm model selection, or select a different model.
`,
);
model = await selectModelToLoad(models, modelPaths, path ?? "", 5, lastLoadedMap);
model = models[initialFilteredModels[0].index];
// console.info(
// text`
// ! Confirm model selection, or select a different model.
// `,
// );
// model = await selectModelToLoad(models, modelPaths, path ?? "", 5, lastLoadedMap);
} else {
console.info(
text`
Expand Down

0 comments on commit d57eaed

Please sign in to comment.