Skip to content

Commit fae5ca9

Browse files
committed
style
1 parent f705699 commit fae5ca9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

FirebaseAI/Sources/TemplateChatSession.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ final class TemplateChatSession: Sendable {
5252
/// - Returns: The content generated by the model.
5353
/// - Throws: A ``GenerateContentError`` if the request failed.
5454
func sendMessage(_ content: [ModelContent],
55-
inputs: [String: Any],
56-
options: RequestOptions = RequestOptions()) async throws
55+
inputs: [String: Any],
56+
options: RequestOptions = RequestOptions()) async throws
5757
-> GenerateContentResponse {
5858
let templateInputs = try inputs.mapValues { try TemplateInput(value: $0) }
5959
let newContent = content.map(populateContentRole)
@@ -82,8 +82,8 @@ final class TemplateChatSession: Sendable {
8282
/// - Returns: The content generated by the model.
8383
/// - Throws: A ``GenerateContentError`` if the request failed.
8484
func sendMessage(_ message: any PartsRepresentable,
85-
inputs: [String: Any],
86-
options: RequestOptions = RequestOptions()) async throws
85+
inputs: [String: Any],
86+
options: RequestOptions = RequestOptions()) async throws
8787
-> GenerateContentResponse {
8888
return try await sendMessage([ModelContent(parts: message.partsValue)],
8989
inputs: inputs,
@@ -103,8 +103,8 @@ final class TemplateChatSession: Sendable {
103103
/// - Returns: An `AsyncThrowingStream` that yields `GenerateContentResponse` objects.
104104
/// - Throws: A ``GenerateContentError`` if the request failed.
105105
func sendMessageStream(_ content: [ModelContent],
106-
inputs: [String: Any],
107-
options: RequestOptions = RequestOptions()) throws
106+
inputs: [String: Any],
107+
options: RequestOptions = RequestOptions()) throws
108108
-> AsyncThrowingStream<GenerateContentResponse, Error> {
109109
let templateInputs = try inputs.mapValues { try TemplateInput(value: $0) }
110110
let newContent = content.map(populateContentRole)
@@ -158,8 +158,8 @@ final class TemplateChatSession: Sendable {
158158
/// - Returns: An `AsyncThrowingStream` that yields `GenerateContentResponse` objects.
159159
/// - Throws: A ``GenerateContentError`` if the request failed.
160160
func sendMessageStream(_ message: any PartsRepresentable,
161-
inputs: [String: Any],
162-
options: RequestOptions = RequestOptions()) throws
161+
inputs: [String: Any],
162+
options: RequestOptions = RequestOptions()) throws
163163
-> AsyncThrowingStream<GenerateContentResponse, Error> {
164164
return try sendMessageStream([ModelContent(parts: message.partsValue)],
165165
inputs: inputs,

FirebaseAI/Sources/TemplateGenerativeModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public final class TemplateGenerativeModel: Sendable {
131131
/// - history: The conversation history to use.
132132
/// - Returns: A new ``TemplateChatSession`` instance.
133133
func startChat(templateID: String,
134-
history: [ModelContent] = []) -> TemplateChatSession {
134+
history: [ModelContent] = []) -> TemplateChatSession {
135135
return TemplateChatSession(
136136
model: self,
137137
templateID: templateID,

0 commit comments

Comments
 (0)