Skip to content

Commit 32b0da3

Browse files
committed
Update package
1 parent 8b1862a commit 32b0da3

13 files changed

+13
-19
lines changed

Sources/ElevenLabs/Intramodular/ElevenLabs.Model.swift

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//
2-
// File.swift
3-
//
4-
//
5-
// Created by Natasha Murashev on 5/28/24.
2+
// Copyright (c) Vatsal Manot
63
//
74

85
import Foundation

Sources/Groq/Intramodular/Groq+LLMRequestHandling.swift

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
//
2-
// File.swift
3-
//
4-
//
5-
// Created by Natasha Murashev on 5/26/24.
2+
// Copyright (c) Vatsal Manot
63
//
74

85
import CorePersistence

Sources/OpenAI/Intramodular/OpenAI.AssistantSession.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extension OpenAI {
99
public final class AssistantSession: ObservableObject {
1010
private let taskQueue = ThrowingTaskQueue()
1111

12-
public let client: APIClient
12+
public let client: OpenAI.Client
1313
public let assistantID: String
1414

1515
@MainActor
@@ -37,7 +37,7 @@ extension OpenAI {
3737

3838
@MainActor
3939
public init(
40-
client: APIClient,
40+
client: OpenAI.Client,
4141
assistantID: String,
4242
tools: [OpenAI.Tool]
4343
) {

Sources/OpenAI/Intramodular/OpenAI.ChatCompletionSession.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ import Swallow
1212
extension OpenAI {
1313
public final class ChatCompletionSession: Logging {
1414
private let queue = DispatchQueue()
15-
private let client: APIClient
15+
private let client: OpenAI.Client
1616
private let session: URLSession
1717
private let sessionDelegate = _URLSessionDataDelegate()
1818

1919
private var eventSource: SSE.EventSource?
2020

21-
public init(client: APIClient) {
21+
public init(
22+
client: OpenAI.Client
23+
) {
2224
self.client = client
2325

2426
session = URLSession(

Sources/OpenAI/Intramodular/OpenAI.APIClient-VectorStore.swift Sources/OpenAI/Intramodular/OpenAI.Client-VectorStore.swift

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
//
2-
// File.swift
3-
//
4-
//
5-
// Created by Natasha Murashev on 5/16/24.
2+
// Copyright (c) Vatsal Manot
63
//
74

85
import Foundation
96
import LargeLanguageModels
107
import NetworkKit
118

129
extension OpenAI.Client {
13-
1410
public func createVectorStore(
1511
name: String?,
1612
fileIDs: [String]?,

Tests/OpenAI/module.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public var OPENAI_API_KEY: String {
88
""
99
}
1010

11-
public var client: OpenAI.APIClient {
12-
OpenAI.APIClient(apiKey: OPENAI_API_KEY)
11+
public var client: OpenAI.Client {
12+
let client = OpenAI.Client(apiKey: OPENAI_API_KEY)
13+
14+
return client
1315
}

0 commit comments

Comments
 (0)