Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
philippzagar committed Nov 3, 2023
1 parent 32e1758 commit 454952b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/MacPaw/OpenAI", .upToNextMinor(from: "0.2.4")),
//.package(url: "https://github.com/StanfordBDHG/llama.cpp", .upToNextMinor(from: "0.1470.0")),
// .package(url: "https://github.com/StanfordBDHG/llama.cpp", .upToNextMinor(from: "0.1470.0")),
.package(url: "https://github.com/ggerganov/llama.cpp", branch: "b1470"),
.package(url: "https://github.com/StanfordSpezi/Spezi", .upToNextMinor(from: "0.7.0")),
.package(url: "https://github.com/StanfordSpezi/SpeziStorage", .upToNextMinor(from: "0.4.0")),
Expand Down Expand Up @@ -55,7 +55,7 @@ let package = Package(
name: "SpeziLLM",
dependencies: [
.target(name: "SpeziOpenAI"),
.product(name: "Spezi", package: "Spezi"),
.product(name: "Spezi", package: "Spezi")
]
),
.target(
Expand All @@ -69,7 +69,7 @@ let package = Package(
.target(
name: "SpeziLLMLocalDownload",
dependencies: [
.product(name: "SpeziOnboarding", package: "SpeziOnboarding"),
.product(name: "SpeziOnboarding", package: "SpeziOnboarding")
]
),
.testTarget(
Expand Down
2 changes: 1 addition & 1 deletion Sources/SpeziLLMLocal/LLMLocalRunnerSetupTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// SPDX-License-Identifier: MIT
//

import SpeziLLM
import llama
import SpeziLLM


public class LLMLocalRunnerSetupTask: LLMRunnerSetupTask {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ struct LocalLLMChatView: View {
contextParameters: .init(nCtx: 512) /// Sets the context size of the model at 512 tokens
)

// TODO
private let model2 = LLMMock()


var body: some View {
LLMChatView(
model: model2, // TODO
model: model,
initialSystemPrompt: .init(
role: .assistant,
content: "Hello! I'm a locally executed Llama 2 7B model, enabled by the Spezi ecosystem!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// SPDX-License-Identifier: MIT
//

import SpeziOnboarding
import SpeziLLMLocalDownload
import SpeziOnboarding
import SpeziViews
import SwiftUI

Expand Down

0 comments on commit 454952b

Please sign in to comment.