Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
vmanot committed Dec 11, 2024
1 parent ecf11cb commit 939c487
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 1,124 deletions.
61 changes: 26 additions & 35 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@ let package = Package(
"CoreMI",
"LargeLanguageModels",
"Anthropic",
"Cohere",
"ElevenLabs",
"_Gemini",
"Groq",
"HuggingFace",
"Jina",
"Mistral",
"Ollama",
"OpenAI",
"Perplexity",
"XAI",
"TogetherAI",
"VoyageAI",
"AI",
]
),
Expand All @@ -40,6 +35,18 @@ let package = Package(
"Anthropic"
]
),
.library(
name: "Cohere",
targets: [
"Cohere"
]
),
.library(
name: "HumeAI",
targets: [
"HumeAI"
]
),
.library(
name: "OpenAI",
targets: [
Expand All @@ -53,9 +60,21 @@ let package = Package(
]
),
.library(
name: "XAI",
name: "Jina",
targets: [
"Jina"
]
),
.library(
name: "TogetherAI",
targets: [
"TogetherAI"
]
),
.library(
name: "VoyageAI",
targets: [
"XAI"
"VoyageAI"
]
)
],
Expand Down Expand Up @@ -242,22 +261,6 @@ let package = Package(
.enableExperimentalFeature("AccessLevelOnImport")
]
),
.target(
name: "XAI",
dependencies: [
"CorePersistence",
"CoreMI",
"LargeLanguageModels",
"OpenAI",
"Merge",
"NetworkKit",
"Swallow"
],
path: "Sources/XAI",
swiftSettings: [
.enableExperimentalFeature("AccessLevelOnImport")
]
),
.target(
name: "Jina",
dependencies: [
Expand Down Expand Up @@ -376,7 +379,6 @@ let package = Package(
"Ollama",
"OpenAI",
"Perplexity",
"XAI",
"PlayHT",
"Rime",
"Swallow",
Expand Down Expand Up @@ -443,17 +445,6 @@ let package = Package(
.enableExperimentalFeature("AccessLevelOnImport")
]
),
.testTarget(
name: "XAITests",
dependencies: [
"AI",
"Swallow"
],
path: "Tests/XAI",
swiftSettings: [
.enableExperimentalFeature("AccessLevelOnImport")
]
),
.testTarget(
name: "PerplexityTests",
dependencies: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Swallow

extension CoreMI {
/// A client for an AI/ML service.
public protocol _ServiceClientProtocol: PersistentlyRepresentableType {
public protocol _ServiceClientProtocol: AnyObject, PersistentlyRepresentableType {
init(account: (any CoreMI._ServiceAccountProtocol)?) async throws
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Ollama/Intramodular/Ollama.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ extension Ollama: CoreMI._ServiceClientProtocol {

}

extension CoreMI._ServiceClientProtocol where Self == Ollama {
extension PersistentlyRepresentableType where Self == Ollama {
public init(
account: (any CoreMI._ServiceAccountProtocol)?
) async throws {
Expand Down
Loading

0 comments on commit 939c487

Please sign in to comment.