@@ -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,
0 commit comments