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

View File

@@ -15,7 +15,7 @@
"location" : "https://github.com/ml-explore/mlx-swift", "location" : "https://github.com/ml-explore/mlx-swift",
"state" : { "state" : {
"branch" : "main", "branch" : "main",
"revision" : "cadf5f8187ac0894e66cd288217e2eda9f2c933d" "revision" : "fbe215ae29ec286bdc66f4b3423e3eea1b3ef2fc"
} }
}, },
{ {
@@ -41,8 +41,8 @@
"kind" : "remoteSourceControl", "kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections.git", "location" : "https://github.com/apple/swift-collections.git",
"state" : { "state" : {
"revision" : "d029d9d39c87bed85b1c50adee7c41795261a192", "revision" : "94cf62b3ba8d4bed62680a282d4c25f9c63c2efb",
"version" : "1.0.6" "version" : "1.1.0"
} }
}, },
{ {