Skip to content

Commit f021e81

Browse files
committed
Remove default value for configureOptions parameter
1 parent 71d8e7d commit f021e81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/OllamaKit/RequestData/OKEmbeddingsRequestData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public struct OKEmbeddingsRequestData: Encodable, Sendable {
3131
public init(
3232
model: String,
3333
prompt: String,
34-
with configureOptions: @Sendable (inout OKCompletionOptions) -> Void = { _ in () }
34+
with configureOptions: @Sendable (inout OKCompletionOptions) -> Void
3535
) {
3636
self.model = model
3737
self.prompt = prompt

Sources/OllamaKit/RequestData/OKGenerateRequestData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public struct OKGenerateRequestData: Sendable {
5050
model: String,
5151
prompt: String,
5252
images: [String]? = nil,
53-
with configureOptions: @Sendable (inout OKCompletionOptions) -> Void = { _ in () }
53+
with configureOptions: @Sendable (inout OKCompletionOptions) -> Void
5454
) {
5555
self.stream = true
5656
self.model = model

0 commit comments

Comments
 (0)