forked from StanfordSpezi/SpeziLLM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
85 lines (81 loc) · 3.24 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// swift-tools-version:5.9
//
// This source file is part of the Stanford Spezi open source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//
import PackageDescription
let package = Package(
name: "SpeziLLM",
defaultLocalization: "en",
platforms: [
.iOS(.v17)
],
products: [
.library(name: "SpeziLLM", targets: ["SpeziLLM"]),
.library(name: "SpeziLLMLocal", targets: ["SpeziLLMLocal"]),
.library(name: "SpeziLLMLocalDownload", targets: ["SpeziLLMLocalDownload"]),
.library(name: "SpeziLLMOpenAI", targets: ["SpeziLLMOpenAI"])
],
dependencies: [
.package(url: "https://github.com/MacPaw/OpenAI", .upToNextMinor(from: "0.2.6")),
.package(url: "https://github.com/StanfordBDHG/llama.cpp", .upToNextMinor(from: "0.1.8")),
.package(url: "https://github.com/StanfordSpezi/Spezi", from: "1.1.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziStorage", from: "1.0.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziOnboarding", from: "1.0.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziSpeech", from: "1.0.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziChat", .upToNextMinor(from: "0.1.8")),
.package(url: "https://github.com/StanfordSpezi/SpeziViews", from: "1.0.0"),
.package(url: "https://github.com/groue/Semaphore.git", exact: "0.0.8")
],
targets: [
.target(
name: "SpeziLLM",
dependencies: [
.product(name: "Spezi", package: "Spezi"),
.product(name: "SpeziChat", package: "SpeziChat"),
.product(name: "SpeziViews", package: "SpeziViews")
]
),
.target(
name: "SpeziLLMLocal",
dependencies: [
.target(name: "SpeziLLM"),
.product(name: "llama", package: "llama.cpp"),
.product(name: "Semaphore", package: "Semaphore"),
.product(name: "Spezi", package: "Spezi")
],
swiftSettings: [
.interoperabilityMode(.Cxx)
]
),
.target(
name: "SpeziLLMLocalDownload",
dependencies: [
.product(name: "SpeziOnboarding", package: "SpeziOnboarding"),
.product(name: "SpeziViews", package: "SpeziViews")
]
),
.target(
name: "SpeziLLMOpenAI",
dependencies: [
.target(name: "SpeziLLM"),
.product(name: "OpenAI", package: "OpenAI"),
.product(name: "Semaphore", package: "Semaphore"),
.product(name: "Spezi", package: "Spezi"),
.product(name: "SpeziChat", package: "SpeziChat"),
.product(name: "SpeziSecureStorage", package: "SpeziStorage"),
.product(name: "SpeziSpeechRecognizer", package: "SpeziSpeech"),
.product(name: "SpeziOnboarding", package: "SpeziOnboarding")
]
),
.testTarget(
name: "SpeziLLMTests",
dependencies: [
.target(name: "SpeziLLMOpenAI")
]
)
]
)