Skip to content

Commit 2db5fd1

Browse files
BarredEwemattt
andauthored
Update llama.swift dependency and rename import to LlamaSwift (#68)
* Rename `Llama` to `LlamaSwift` * Update Package.swift --------- Co-authored-by: Mattt <[email protected]>
1 parent c2ce310 commit 2db5fd1

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

Package.resolved

Lines changed: 1 addition & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let package = Package(
3131
.package(url: "https://github.com/huggingface/swift-transformers", from: "1.0.0"),
3232
.package(url: "https://github.com/mattt/EventSource", from: "1.3.0"),
3333
.package(url: "https://github.com/mattt/JSONSchema", from: "1.3.0"),
34-
.package(url: "https://github.com/mattt/llama.swift", .upToNextMajor(from: "1.6818.0")),
34+
.package(url: "https://github.com/mattt/llama.swift", .upToNextMajor(from: "2.7484.0")),
3535
.package(url: "https://github.com/mattt/PartialJSONDecoder", from: "1.0.0"),
3636
.package(url: "https://github.com/ml-explore/mlx-swift-lm", branch: "main"),
3737
.package(url: "https://github.com/swiftlang/swift-syntax", from: "600.0.0"),
@@ -65,7 +65,7 @@ let package = Package(
6565
condition: .when(traits: ["CoreML"])
6666
),
6767
.product(
68-
name: "Llama",
68+
name: "LlamaSwift",
6969
package: "llama.swift",
7070
condition: .when(traits: ["Llama"])
7171
),

Sources/AnyLanguageModel/Models/LlamaLanguageModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22
#if Llama
3-
import Llama
3+
import LlamaSwift
44

55
/// Global storage for the current log level threshold.
66
/// This is needed because the C callback can't capture Swift context.

0 commit comments

Comments
 (0)