Fix position of @main annotation

- Also update package versions otherwise things don't compile out of the box
  (you need the version where `callAsFunction` is marked `open`)
This commit is contained in:
Rudro Samanta
2024-02-27 13:02:13 -08:00
parent 3f02fcc1cb
commit 362f1c8ad8
2 changed files with 4 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import LLM
import MLX
import MLXRandom
@main
struct LLMTool: AsyncParsableCommand {
static var configuration = CommandConfiguration(
abstract: "Command line tool for generating text using Llama models",
@@ -13,7 +14,6 @@ struct LLMTool: AsyncParsableCommand {
defaultSubcommand: SyncGenerator.self)
}
@main
struct SyncGenerator: AsyncParsableCommand {
static var configuration = CommandConfiguration(